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); |