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

Unified Diff: src/inspector/debugger-script.js

Issue 2685483002: [debugger] expose side-effect free evaluate to inspector. (Closed)
Patch Set: Created 3 years, 10 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: src/inspector/debugger-script.js
diff --git a/src/inspector/debugger-script.js b/src/inspector/debugger-script.js
index 871cea154cda7be3bcf95399c34278800212382f..8bd0f030f4b85b30612ef084be1b5ba7058cb8cf 100644
--- a/src/inspector/debugger-script.js
+++ b/src/inspector/debugger-script.js
@@ -463,11 +463,12 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
/**
* @param {string} expression
+ * @param {boolean} allowSideEffect
* @return {*}
*/
- function evaluate(expression)
+ function evaluate(expression, allowSideEffect)
{
- return frameMirror.evaluate(expression).value();
+ return frameMirror.evaluate(expression, allowSideEffect).value();
}
/** @return {undefined} */

Powered by Google App Engine
This is Rietveld 408576698