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

Unified Diff: test/mjsunit/regress/regress-5207.js

Issue 2519773003: [debug] Add Eval scope type to inspector protocol (Closed)
Patch Set: Address comments 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-eval-scope.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-5207.js
diff --git a/test/mjsunit/regress/regress-5207.js b/test/mjsunit/regress/regress-5207.js
deleted file mode 100644
index 1472b541b5a2883f0c4e559f78732f08a2b5ca7b..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-5207.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2012 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
-
-'use strict';
-var Debug = debug.Debug;
-var exception = null;
-
-function listener(event, exec_state, event_data, data) {
- if (event != Debug.DebugEvent.Break) return;
- try {
- var scopes = exec_state.frame(0).allScopes();
- assertEquals(debug.ScopeType.Eval, scopes[0].scopeType());
- assertEquals(1, scopes[0].scopeObject().value().a);
- assertEquals(debug.ScopeType.Script, scopes[1].scopeType());
- assertEquals(undefined, scopes[1].scopeObject().value().a);
- assertEquals(debug.ScopeType.Global, scopes[2].scopeType());
- assertEquals(undefined, scopes[2].scopeObject().value().a);
- } catch (e) {
- exception = e;
- }
-}
-
-Debug.setListener(listener);
-// Eval inherits strict mode.
-eval("var a = 1; debugger;");
-Debug.setListener(null);
-assertNull(exception);
« no previous file with comments | « test/mjsunit/debug-eval-scope.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698