ext/v8/v8_obj.cpp in therubyracer-0.4.0 vs ext/v8/v8_obj.cpp in therubyracer-0.4.1
- old
+ new
@@ -2,10 +2,12 @@
#include "v8_ref.h"
#include "converters.h"
using namespace v8;
+#include <cstdio>
+
VALUE V8_C_Object;
VALUE v8_Object_New(VALUE clazz) {
HandleScope handles;
return V8_Ref_Create(clazz, Object::New());
@@ -19,11 +21,11 @@
return V82RB(value);
}
VALUE v8_Object_Set(VALUE self, VALUE key, VALUE value) {
HandleScope handles;
- convert_rb_to_v8_t rb2v8;
Local<Object> obj = V8_Ref_Get<Object>(self);
VALUE keystr = rb_funcall(key, rb_intern("to_s"), 0);
- obj->Set(rb2v8(keystr), rb2v8(value));
+
+ obj->Set(RB2V8(keystr), RB2V8(value));
return Qnil;
}