OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --expose-debug-as debug --harmony-generators | 5 // Flags: --expose-debug-as debug --harmony-generators |
6 | 6 |
7 var Debug = debug.Debug; | 7 var Debug = debug.Debug; |
8 | 8 |
9 function RunTest(name, formals_and_body, args, handler, continuation) { | 9 function RunTest(name, formals_and_body, args, handler, continuation) { |
10 var handler_called = false; | 10 var handler_called = false; |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 | 317 |
318 RunTest("Catch block 1", | 318 RunTest("Catch block 1", |
319 ["try { throw 'Exception'; } catch (e) { debugger; }"], | 319 ["try { throw 'Exception'; } catch (e) { debugger; }"], |
320 [], | 320 [], |
321 function (exec_state) { | 321 function (exec_state) { |
322 CheckScopeChain([debug.ScopeType.Catch, | 322 CheckScopeChain([debug.ScopeType.Catch, |
323 debug.ScopeType.Local, | 323 debug.ScopeType.Local, |
324 debug.ScopeType.Global], exec_state); | 324 debug.ScopeType.Global], exec_state); |
325 CheckScopeContent({e:'Exception'}, 0, exec_state); | 325 CheckScopeContent({e:'Exception'}, 0, exec_state); |
326 }); | 326 }); |
OLD | NEW |