ext/v8/v8_integer.cpp in mustang-0.1.1 vs ext/v8/v8_integer.cpp in mustang-0.2.0
- old
+ new
@@ -26,9 +26,10 @@
*
*/
static VALUE rb_v8_integer_new(VALUE klass, VALUE data)
{
HandleScope scope;
+ PREVENT_CREATION_WITHOUT_CONTEXT();
VALUE num = rb_funcall2(data, rb_intern("to_i"), 0, NULL);
return v8_ref_new(klass, to_v8_integer(num));
}
/*