ext/v8/v8_object.cpp in therubyracer-0.9.0beta2 vs ext/v8/v8_object.cpp in therubyracer-0.9.0beta3

- old
+ new

@@ -50,10 +50,13 @@ HandleScope handles; Persistent<Object> object = unwrap(self); Local<Value> names = object->GetPropertyNames(); return rr_v82rb(names); } + VALUE GetIdentityHash(VALUE self) { + return rr_v82rb(unwrap(self)->GetIdentityHash()); + } VALUE SetHiddenValue(VALUE self, VALUE key, VALUE value) { HandleScope scope; if (Context::InContext()) { unwrap(self)->SetHiddenValue(rr_rb2v8(key)->ToString(), rr_rb2v8(value)); } else { @@ -84,9 +87,10 @@ ObjectClass = rr_define_class("Object", rr_v8_value_class()); rr_define_singleton_method(ObjectClass, "New", New, 0); rr_define_method(ObjectClass, "Get", Get, 1); rr_define_method(ObjectClass, "Set", Set, 2); rr_define_method(ObjectClass, "GetPropertyNames", GetPropertyNames, 0); + rr_define_method(ObjectClass, "GetIdentityHash", GetIdentityHash, 0); rr_define_method(ObjectClass, "GetHiddenValue", GetHiddenValue, 1); rr_define_method(ObjectClass, "SetHiddenValue", SetHiddenValue, 2); rr_define_method(ObjectClass, "GetPrototype", GetPrototype, 0); rr_define_method(ObjectClass, "SetPrototype", SetPrototype, 1); }