Projects

Ticket #167 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Autoload throws an exception at the second call

Reported by: vincent.isambart@… Owned by: lsansonetti@…
Priority: critical Milestone: MacRuby 0.4
Component: MacRuby Keywords:
Cc:

Description

The second call to autoload always throws an exception:

./miniruby -e 'autoload :A, "a";autoload :B, "b"'
-e:1:in `autoload': wrong argument type NSObject (expected Data) (TypeError)
	from -e:1:in `<main>'

The first call to rb_autoload creates and saves an autoload_table, but it seems the type of the table (NSObject) is not what the second call to rb_autoload is waiting for (it wants a Data). The check is on the first line of check_autoload_table (all of those functions are in variable.c).

Change History

Changed 3 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.4

Fixed in r755/trunk.

Note: See TracTickets for help on using tickets.