Index: third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl |
diff --git a/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl |
index 7f7dc8cd932553b87f4c7c8729a6856cd4984ccc..d14ade75d64b87d4606eafce8d11c7e56e68bbcf 100644 |
--- a/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl |
+++ b/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl |
@@ -34,7 +34,7 @@ const v8::FunctionCallbackInfo<v8::Value>& info |
// X(SameObject, {{same_object_private_key}}) |
auto privateSameObject = V8PrivateProperty::getSameObject{{same_object_private_key}}(info.GetIsolate()); |
{ |
- v8::Local<v8::Value> v8Value = privateSameObject.get(info.GetIsolate()->GetCurrentContext(), holder); |
+ v8::Local<v8::Value> v8Value = privateSameObject.getOrEmpty(holder); |
if (!v8Value.IsEmpty()) { |
v8SetReturnValue(info, v8Value); |
return; |
@@ -163,7 +163,7 @@ const v8::FunctionCallbackInfo<v8::Value>& info |
{% if attribute.is_save_same_object %} |
// [SaveSameObject] |
- privateSameObject.set(info.GetIsolate()->GetCurrentContext(), holder, info.GetReturnValue().Get()); |
+ privateSameObject.set(holder, info.GetReturnValue().Get()); |
{% endif %} |
{% endfilter %}{# format_remove_duplicates #} |
} |