make sure rb_singleton_class() can be interpreted
--- MacRuby/trunk/interpreter.cpp 2010-08-24 21:50:09 UTC (rev 4462)
+++ MacRuby/trunk/interpreter.cpp 2010-08-25 00:43:43 UTC (rev 4463)
@@ -84,7 +84,12 @@
return vm_dispatch(top, self, sel, block, opt, argc, argv);
}
+ else if (called == RoxorCompiler::shared->singletonClassFunc) {
+ VALUE klass = value_as(call_arg(call, 0), VALUE);
+ return rb_singleton_class(klass);
+ }
+
oops("unrecognized call instruction:", call);
}