| Index: test/mjsunit/es6/debug-blockscopes.js
|
| diff --git a/test/mjsunit/es6/debug-blockscopes.js b/test/mjsunit/es6/debug-blockscopes.js
|
| index 193ad705cb339732f4310adb7c0546373db6157e..68ad92a257d6c604fb9ec141ac24c03eebd26e5e 100644
|
| --- a/test/mjsunit/es6/debug-blockscopes.js
|
| +++ b/test/mjsunit/es6/debug-blockscopes.js
|
| @@ -380,16 +380,12 @@ function for_loop_1() {
|
|
|
| listener_delegate = function(exec_state) {
|
| CheckScopeChain([debug.ScopeType.Block,
|
| - debug.ScopeType.Block,
|
| debug.ScopeType.Local,
|
| debug.ScopeType.Script,
|
| debug.ScopeType.Global], exec_state);
|
| CheckScopeContent({x:'y'}, 0, exec_state);
|
| // The function scope contains a temporary iteration variable, but it is
|
| // hidden to the debugger.
|
| - // TODO(adamk): This variable is only used to provide a TDZ for the enumerable
|
| - // expression and should not be visible to the debugger.
|
| - CheckScopeContent({x:undefined}, 1, exec_state);
|
| };
|
| for_loop_1();
|
| EndTest();
|
| @@ -409,7 +405,6 @@ function for_loop_2() {
|
| listener_delegate = function(exec_state) {
|
| CheckScopeChain([debug.ScopeType.Block,
|
| debug.ScopeType.Block,
|
| - debug.ScopeType.Block,
|
| debug.ScopeType.Local,
|
| debug.ScopeType.Script,
|
| debug.ScopeType.Global], exec_state);
|
| @@ -417,9 +412,6 @@ listener_delegate = function(exec_state) {
|
| CheckScopeContent({x:'y'}, 1, exec_state);
|
| // The function scope contains a temporary iteration variable, hidden to the
|
| // debugger.
|
| - // TODO(adamk): This variable is only used to provide a TDZ for the enumerable
|
| - // expression and should not be visible to the debugger.
|
| - CheckScopeContent({x:undefined}, 2, exec_state);
|
| };
|
| for_loop_2();
|
| EndTest();
|
| @@ -436,13 +428,11 @@ function for_loop_3() {
|
|
|
| listener_delegate = function(exec_state) {
|
| CheckScopeChain([debug.ScopeType.Block,
|
| - debug.ScopeType.Block,
|
| debug.ScopeType.Local,
|
| debug.ScopeType.Script,
|
| debug.ScopeType.Global], exec_state);
|
| CheckScopeContent({x:3}, 0, exec_state);
|
| - CheckScopeContent({x:3}, 1, exec_state);
|
| - CheckScopeContent({}, 2, exec_state);
|
| + CheckScopeContent({}, 1, exec_state);
|
| };
|
| for_loop_3();
|
| EndTest();
|
| @@ -461,14 +451,12 @@ function for_loop_4() {
|
| listener_delegate = function(exec_state) {
|
| CheckScopeChain([debug.ScopeType.Block,
|
| debug.ScopeType.Block,
|
| - debug.ScopeType.Block,
|
| debug.ScopeType.Local,
|
| debug.ScopeType.Script,
|
| debug.ScopeType.Global], exec_state);
|
| CheckScopeContent({x:5}, 0, exec_state);
|
| CheckScopeContent({x:3}, 1, exec_state);
|
| - CheckScopeContent({x:3}, 2, exec_state);
|
| - CheckScopeContent({}, 3, exec_state);
|
| + CheckScopeContent({}, 2, exec_state);
|
| };
|
| for_loop_4();
|
| EndTest();
|
| @@ -485,13 +473,11 @@ function for_loop_5() {
|
|
|
| listener_delegate = function(exec_state) {
|
| CheckScopeChain([debug.ScopeType.Block,
|
| - debug.ScopeType.Block,
|
| debug.ScopeType.Local,
|
| debug.ScopeType.Script,
|
| debug.ScopeType.Global], exec_state);
|
| CheckScopeContent({x:3,y:5}, 0, exec_state);
|
| - CheckScopeContent({x:3,y:5}, 1, exec_state);
|
| - CheckScopeContent({}, 2, exec_state);
|
| + CheckScopeContent({}, 1, exec_state);
|
| };
|
| for_loop_5();
|
| EndTest();
|
|
|