Index: Source/bindings/v8/V8HiddenPropertyName.cpp |
diff --git a/Source/bindings/v8/V8HiddenPropertyName.cpp b/Source/bindings/v8/V8HiddenPropertyName.cpp |
index 2da72d36f5ec031ffeeea2b10996ae3da4c54d48..776de512ade033d55defe851919672914413c8da 100644 |
--- a/Source/bindings/v8/V8HiddenPropertyName.cpp |
+++ b/Source/bindings/v8/V8HiddenPropertyName.cpp |
@@ -49,7 +49,7 @@ v8::Handle<v8::String> V8HiddenPropertyName::name() \ |
v8::Isolate* isolate = v8::Isolate::GetCurrent(); \ |
V8HiddenPropertyName* hiddenPropertyName = V8PerIsolateData::from(isolate)->hiddenPropertyName(); \ |
if (hiddenPropertyName->m_##name.IsEmpty()) { \ |
- createString(V8_HIDDEN_PROPERTY_PREFIX V8_AS_STRING(name), &(hiddenPropertyName->m_##name)); \ |
+ createString(V8_HIDDEN_PROPERTY_PREFIX V8_AS_STRING(name), &(hiddenPropertyName->m_##name), isolate); \ |
} \ |
return v8::Local<v8::String>::New(isolate, hiddenPropertyName->m_##name); \ |
} |
@@ -71,9 +71,8 @@ void V8HiddenPropertyName::setNamedHiddenReference(v8::Handle<v8::Object> parent |
parent->SetHiddenValue(hiddenReferenceName(name, strlen(name)), child); |
} |
-void V8HiddenPropertyName::createString(const char* key, v8::Persistent<v8::String>* handle) |
+void V8HiddenPropertyName::createString(const char* key, v8::Persistent<v8::String>* handle, v8::Isolate* isolate) |
{ |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
v8::HandleScope scope(isolate); |
handle->Reset(isolate, v8::String::NewSymbol(key)); |
} |