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

Unified Diff: Source/bindings/core/v8/PrivateScriptRunner.cpp

Issue 386353002: Implement reflected attributes of HTMLMarqueeElement in Blink-in-JS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/PrivateScriptRunner.cpp
diff --git a/Source/bindings/core/v8/PrivateScriptRunner.cpp b/Source/bindings/core/v8/PrivateScriptRunner.cpp
index a089a9987f518e00ef235597531f4a2e9deb0ee2..daf20243de55ea25600c68586cbc86779083d23c 100644
--- a/Source/bindings/core/v8/PrivateScriptRunner.cpp
+++ b/Source/bindings/core/v8/PrivateScriptRunner.cpp
@@ -91,7 +91,8 @@ static void initializeHolderIfNeeded(ScriptState* scriptState, v8::Handle<v8::Ob
v8::Isolate* isolate = scriptState->isolate();
v8::Handle<v8::Value> isInitialized = V8HiddenValue::getHiddenValue(isolate, holderObject, V8HiddenValue::privateScriptObjectIsInitialized(isolate));
if (isInitialized.IsEmpty()) {
- v8::Handle<v8::Value> initializeFunction = classObject->Get(v8String(isolate, "constructor"));
+ v8::TryCatch block;
+ v8::Handle<v8::Value> initializeFunction = classObject->Get(v8String(isolate, "initialize"));
if (!initializeFunction.IsEmpty() && initializeFunction->IsFunction()) {
V8ScriptRunner::callFunction(v8::Handle<v8::Function>::Cast(initializeFunction), scriptState->executionContext(), holder, 0, 0, isolate);
}
« no previous file with comments | « no previous file | Source/bindings/core/v8/PrivateScriptRunner.js » ('j') | Source/core/html/HTMLMarqueeElement.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698