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

Unified Diff: test/debugger/debug/debug-scopes-suspended-generators.js

Issue 2654423004: [async-functions] support await expressions in finally statements (Closed)
Patch Set: I'd like to build with -Wunused-variables locally, but how!? Created 3 years, 11 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: test/debugger/debug/debug-scopes-suspended-generators.js
diff --git a/test/debugger/debug/debug-scopes-suspended-generators.js b/test/debugger/debug/debug-scopes-suspended-generators.js
index 38fb7fab937f488cf87256b59c09de60718dd604..34fe7945861d9e95b2c820d93b158c777528f770 100644
--- a/test/debugger/debug/debug-scopes-suspended-generators.js
+++ b/test/debugger/debug/debug-scopes-suspended-generators.js
@@ -107,10 +107,8 @@ function *gen1() {
}
var g = gen1();
-CheckScopeChain([debug.ScopeType.Closure,
- debug.ScopeType.Script,
+CheckScopeChain([debug.ScopeType.Script,
debug.ScopeType.Global], g);
-CheckScopeContent({}, 0, g);
// Closure scope with a parameter.
@@ -190,14 +188,11 @@ function *gen6() {
g = gen6();
g.next();
CheckScopeChain([debug.ScopeType.With,
- debug.ScopeType.Closure,
debug.ScopeType.Script,
debug.ScopeType.Global], g);
-CheckScopeContent({}, 0, g);
g.next();
-CheckScopeChain([debug.ScopeType.Closure,
- debug.ScopeType.Script,
+CheckScopeChain([debug.ScopeType.Script,
debug.ScopeType.Global], g);
// Nested empty with blocks.
@@ -216,7 +211,6 @@ g = gen7();
g.next();
CheckScopeChain([debug.ScopeType.With,
debug.ScopeType.With,
- debug.ScopeType.Closure,
debug.ScopeType.Script,
debug.ScopeType.Global], g);
CheckScopeContent({}, 0, g);
@@ -237,7 +231,6 @@ g = gen8();
g.next();
CheckScopeChain([debug.ScopeType.With,
debug.ScopeType.With,
- debug.ScopeType.Closure,
debug.ScopeType.Script,
debug.ScopeType.Global], g);
CheckScopeContent({a: 2, b: 1}, 0, g);
@@ -259,7 +252,6 @@ function *gen9() {
g = gen9();
g.next();
CheckScopeChain([debug.ScopeType.Catch,
- debug.ScopeType.Closure,
debug.ScopeType.Script,
debug.ScopeType.Global], g);
CheckScopeContent({e: 42}, 0, g);
@@ -317,7 +309,6 @@ function *gen13() {
var g = gen13();
assertThrows(() => Debug.generatorScope(g, 0).setVariableValue("a", 42));
-CheckScopeContent({}, 0, g);
// Set a variable in a simple scope.
@@ -434,7 +425,6 @@ g = gen17();
g.next();
CheckScopeChain([debug.ScopeType.Catch,
- debug.ScopeType.Closure,
debug.ScopeType.Script,
debug.ScopeType.Global], g);
CheckScopeContent({e: 42}, 0, g);
@@ -442,7 +432,7 @@ CheckScopeContent({xxxyyxxyx: 42284,
printProtocolMessages : printProtocolMessages,
activeWrapper : activeWrapper,
DebugWrapper : DebugWrapper
- }, 2, g);
+ }, 1, g);
Debug.generatorScope(g, 0).setVariableValue("e", 1);
CheckScopeContent({e: 1}, 0, g);
@@ -450,9 +440,9 @@ CheckScopeContent({e: 1}, 0, g);
assertEquals(1, g.next().value);
// Script scope.
-Debug.generatorScope(g, 2).setVariableValue("xxxyyxxyx", 42);
+Debug.generatorScope(g, 1).setVariableValue("xxxyyxxyx", 42);
assertEquals(42, xxxyyxxyx);
// Global scope.
-assertThrows(() => Debug.generatorScope(g, 3).setVariableValue("yyzyzzyz", 42));
+assertThrows(() => Debug.generatorScope(g, 2).setVariableValue("yyzyzzyz", 42));
assertEquals(4829, yyzyzzyz);
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/ThisFunction.golden ('k') | test/mjsunit/es8/async-function-try-finally.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698