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

Unified Diff: Source/bindings/core/dart/DartInjectedScript.cpp

Issue 1177953010: Support new style JS interop (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: ptal. Created 5 years, 6 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/dart/DartInjectedScript.cpp
diff --git a/Source/bindings/core/dart/DartInjectedScript.cpp b/Source/bindings/core/dart/DartInjectedScript.cpp
index b9ca5d5f3ea83fc269034abfd8597448a18fe25b..ee04633d4c9cfb6690de229240261003ba353677 100644
--- a/Source/bindings/core/dart/DartInjectedScript.cpp
+++ b/Source/bindings/core/dart/DartInjectedScript.cpp
@@ -972,6 +972,8 @@ void DartInjectedScript::getProperties(ErrorString* errorString, const String& o
}
DartIsolateScope scope(m_scriptState->isolate());
DartApiScope apiScope;
+ DartDOMData* domData = DartDOMData::current();
+ V8Scope v8scope(domData);
DartDebuggerObject* object = lookupObject(objectId);
if (!object) {
@@ -1109,7 +1111,6 @@ void DartInjectedScript::getProperties(ErrorString* errorString, const String& o
(*properties)->addItem(descriptor);
if (DartDOMWrapper::subtypeOf(handle, JsObject::dartClassId)) {
- DartDOMData* domData = DartDOMData::current();
JsObject* object = DartDOMWrapper::unwrapDartWrapper<JsObject>(domData, handle, exception);
if (!exception) {
descriptor = PropertyDescriptor::create().setName("[[JavaScript View]]").setConfigurable(false).setEnumerable(true).release();
@@ -1144,6 +1145,8 @@ void DartInjectedScript::getProperty(ErrorString* errorString, const String& obj
return;
}
DartIsolateScope scope(m_scriptState->isolate());
+ DartDOMData* domData = DartDOMData::current();
+ V8Scope v8scope(domData);
DartApiScope apiScope;
DartDebuggerObject* object = lookupObject(objectId);
« no previous file with comments | « no previous file | Source/bindings/core/dart/DartJsInterop.cpp » ('j') | Source/bindings/core/dart/DartJsInterop.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698