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

Unified Diff: test/mjsunit/debug-evaluate-nested.js

Issue 2505363002: [debug-wrapper] Adapt tests, breakpoint.actual_location (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/mjsunit/debug-evaluate-locals.js ('k') | test/mjsunit/debug-is-active.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-evaluate-nested.js
diff --git a/test/mjsunit/debug-evaluate-nested.js b/test/mjsunit/debug-evaluate-nested.js
deleted file mode 100644
index 965b5a7aa596f924af6c3711ffc02015432a13c1..0000000000000000000000000000000000000000
--- a/test/mjsunit/debug-evaluate-nested.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --expose-debug-as debug
-
-Debug = debug.Debug;
-ScopeType = debug.ScopeType;
-var exception = null;
-var nested = false;
-
-function bar() {
- let a = 1;
- (function foo() {
- let b = a;
- with (new Proxy({}, {})) {
- debugger;
- }
- })();
-}
-
-function checkScopes(scopes, expectation) {
- assertEquals(scopes.map(s => s.scopeType()), expectation);
-}
-
-function listener(event, exec_state, event_data, data) {
- if (event != Debug.DebugEvent.Break) return;
- try {
- if (!nested) {
- nested = true;
- checkScopes(exec_state.frame(0).allScopes(),
- [ ScopeType.With, ScopeType.Local, ScopeType.Closure,
- ScopeType.Script, ScopeType.Global ]);
- exec_state.frame(0).evaluate("debugger;");
- } else {
- checkScopes(exec_state.frame(0).allScopes(),
- [ ScopeType.Eval, ScopeType.With, ScopeType.Closure,
- ScopeType.Script, ScopeType.Global ]);
- }
- } catch (e) {
- exception = e;
- print(e + e.stack);
- }
-}
-
-Debug.setListener(listener);
-bar();
-Debug.setListener(null);
-assertNull(exception);
« no previous file with comments | « test/mjsunit/debug-evaluate-locals.js ('k') | test/mjsunit/debug-is-active.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698