OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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: --allow-natives-syntax --expose-debug-as debug | |
6 | 5 |
7 function dbg(x) { | 6 function dbg(x) { |
8 debugger; | 7 debugger; |
9 } | 8 } |
10 | 9 |
11 function foo() { | 10 function foo() { |
12 arguments[0]; | 11 arguments[0]; |
13 dbg(); | 12 dbg(); |
14 } | 13 } |
15 | 14 |
(...skipping 16 matching lines...) Expand all Loading... |
32 for (var i = 0; i < exec_state.frameCount(); i++) { | 31 for (var i = 0; i < exec_state.frameCount(); i++) { |
33 var f = exec_state.frame(i); | 32 var f = exec_state.frame(i); |
34 for (var j = 0; j < f.localCount(); j++) { | 33 for (var j = 0; j < f.localCount(); j++) { |
35 print("'" + f.localName(j) + "' = " + f.localValue(j).value()); | 34 print("'" + f.localName(j) + "' = " + f.localValue(j).value()); |
36 } | 35 } |
37 } | 36 } |
38 }); | 37 }); |
39 | 38 |
40 foo(1); | 39 foo(1); |
41 bar(1); | 40 bar(1); |
OLD | NEW |