Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index cd0684b57a37f89e1de418fa64a812b25efad097..d439472536cdb019fe8fc1b7c4413f114c7893bf 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3303,9 +3303,10 @@ bool v8::Object::SetHiddenValue(v8::Handle<v8::String> key, |
i::HandleScope scope(isolate); |
i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
i::Handle<i::String> key_obj = Utils::OpenHandle(*key); |
+ i::Handle<i::String> key_symbol = FACTORY->LookupSymbol(key_obj); |
i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); |
i::Handle<i::Object> result = |
- i::JSObject::SetHiddenProperty(self, key_obj, value_obj); |
+ i::JSObject::SetHiddenProperty(self, key_symbol, value_obj); |
return *result == *self; |
} |
@@ -3317,7 +3318,8 @@ v8::Local<v8::Value> v8::Object::GetHiddenValue(v8::Handle<v8::String> key) { |
ENTER_V8(isolate); |
i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
i::Handle<i::String> key_obj = Utils::OpenHandle(*key); |
- i::Handle<i::Object> result(self->GetHiddenProperty(*key_obj)); |
+ i::Handle<i::String> key_symbol = FACTORY->LookupSymbol(key_obj); |
+ i::Handle<i::Object> result(self->GetHiddenProperty(*key_symbol)); |
if (result->IsUndefined()) return v8::Local<v8::Value>(); |
return Utils::ToLocal(result); |
} |
@@ -3330,7 +3332,8 @@ bool v8::Object::DeleteHiddenValue(v8::Handle<v8::String> key) { |
i::HandleScope scope(isolate); |
i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
i::Handle<i::String> key_obj = Utils::OpenHandle(*key); |
- self->DeleteHiddenProperty(*key_obj); |
+ i::Handle<i::String> key_symbol = FACTORY->LookupSymbol(key_obj); |
+ self->DeleteHiddenProperty(*key_symbol); |
return true; |
} |