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

Unified Diff: Source/bindings/dart/DartDebugHooks.js

Issue 23710032: Switch the DevTools to support a true Dart REPL (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 3 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/dart/DartDebugHooks.js
diff --git a/Source/bindings/dart/DartDebugHooks.js b/Source/bindings/dart/DartDebugHooks.js
index c55cfd35bc8ecfb3d70285dcca1e80816fb84cf6..8831a715533b6e475c28584726cce5e01b9bf9e2 100644
--- a/Source/bindings/dart/DartDebugHooks.js
+++ b/Source/bindings/dart/DartDebugHooks.js
@@ -105,6 +105,7 @@ DartDebug.Script.prototype = {
DartDebug.FrameMirror = function(callFrame)
{
+ this._callFrame = callFrame;
this._functionName = callFrame.functionName;
this._scriptId = DartDebug.scriptURLToScriptId[callFrame.scriptURL];
this._lineNumber = callFrame.lineNumber;
@@ -155,8 +156,9 @@ DartDebug.FrameMirror.prototype = {
expression = expression.substr(0, expression.lastIndexOf('\n'));
}
- var result = DartDebug.nativeCallbacks.evaluateInScope(expression, this._localScope.receiver(),
- this._globalScope._object, this._localScope._object);
+ var result = DartDebug.nativeCallbacks.invocationTrampoline(
+ DartDebug.nativeCallbacks.evaluateInScope,
+ [expression, this._localScope.receiver(), this._callFrame.functionProxy, this._callFrame.localVariables]);
return { value: function() { return result; } };
},

Powered by Google App Engine
This is Rietveld 408576698