Revision
4463
Author
lsansonetti@apple.com
Date
2010-08-24 17:43:43 -0700 (Tue, 24 Aug 2010)

Log Message

make sure rb_singleton_class() can be interpreted

Modified Paths

Diff

Modified: MacRuby/trunk/interpreter.cpp (4462 => 4463)


--- 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);
 }