Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp

Issue 1153613007: bindings: Use CreateDataProperty() instead of ForceSet() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: DefineOwnProperty() doesn't work in V8InjectedScriptHost::setNonEnumPropertyMethodCustom Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp
index 711660a221e95b51290102b292feee5fc94e3a2f..c0f4d1f3beb4de0f35565fb2f1a56d4449019df9 100644
--- a/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp
@@ -565,6 +565,7 @@ void V8InjectedScriptHost::setNonEnumPropertyMethodCustom(const v8::FunctionCall
return;
v8::Local<v8::Object> object = info[0].As<v8::Object>();
+ // TODO(bashi): Use DefineOwnProperty() if possible.
jochen (gone - plz use gerrit) 2015/06/03 10:55:17 what exception does this throw?
bashi 2015/06/05 01:10:27 Nevermind; this custom bindings has gone. https://
object->ForceSet(info.GetIsolate()->GetCurrentContext(), info[1], info[2], v8::DontEnum);
}

Powered by Google App Engine
This is Rietveld 408576698