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

Unified Diff: test/debugger/debug/debug-evaluate-no-side-effect-control.js

Issue 2685483002: [debugger] expose side-effect free evaluate to inspector. (Closed)
Patch Set: add inspector test 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
« no previous file with comments | « test/debugger/debug/debug-evaluate-no-side-effect-builtins.js ('k') | test/debugger/test-api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/debug/debug-evaluate-no-side-effect-control.js
diff --git a/test/debugger/debug/debug-evaluate-no-side-effect-control.js b/test/debugger/debug/debug-evaluate-no-side-effect-control.js
index 09b74d9d6f6ee003e5fa63e2cd32df1a84499649..1111b49c83604348354fba275da06ff9dba84087 100644
--- a/test/debugger/debug/debug-evaluate-no-side-effect-control.js
+++ b/test/debugger/debug/debug-evaluate-no-side-effect-control.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --ignition --side-effect-free-debug-evaluate
+// Flags: --ignition
Debug = debug.Debug
@@ -85,10 +85,11 @@ function listener(event, exec_state, event_data, data) {
if (event != Debug.DebugEvent.Break) return;
try {
successes.forEach(function ([expectation, source]) {
- assertEquals(expectation, exec_state.frame(0).evaluate(source).value());
+ assertEquals(expectation,
+ exec_state.frame(0).evaluate(source, true).value());
});
fails.forEach(function (test) {
- assertThrows(() => exec_state.frame(0).evaluate(test), EvalError);
+ assertThrows(() => exec_state.frame(0).evaluate(test, true), EvalError);
});
} catch (e) {
exception = e;
« no previous file with comments | « test/debugger/debug/debug-evaluate-no-side-effect-builtins.js ('k') | test/debugger/test-api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698