Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 77bb9828253f327808d88b8200c236ed4e467de7..954f82144135a95cf2832a5cf90c135c7ab96135 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3299,6 +3299,7 @@ bool v8::Object::SetHiddenValue(v8::Handle<v8::String> key, |
v8::Handle<v8::Value> value) { |
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
ON_BAILOUT(isolate, "v8::Object::SetHiddenValue()", return false); |
+ if (value.IsEmpty()) return DeleteHiddenValue(key); |
ENTER_V8(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::JSObject> self = Utils::OpenHandle(this); |