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

Side by Side Diff: test/mjsunit/debug-stepout-scope-part1.js

Issue 1479843002: [debugger] Remove obsolete stepping modes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix one more test Created 5 years 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/debug-continue.js ('k') | test/mjsunit/debug-stepout-scope-part2.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 26 matching lines...) Expand all
37 // Access scope details. 37 // Access scope details.
38 var scope_count = exec_state.frame().scopeCount(); 38 var scope_count = exec_state.frame().scopeCount();
39 for (var i = 0; i < scope_count; i++) { 39 for (var i = 0; i < scope_count; i++) {
40 var scope = exec_state.frame().scope(i); 40 var scope = exec_state.frame().scope(i);
41 // assertTrue(scope.isScope()); 41 // assertTrue(scope.isScope());
42 scope.scopeType(); 42 scope.scopeType();
43 scope.scopeObject(); 43 scope.scopeObject();
44 } 44 }
45 45
46 // Do steps until we reach the global scope again. 46 // Do steps until we reach the global scope again.
47 if (true) { 47 exec_state.prepareStep(Debug.StepAction.StepIn, 1);
48 exec_state.prepareStep(Debug.StepAction.StepInMin, 1);
49 }
50 } 48 }
51 } 49 }
52 50
53 Debug.setListener(listener); 51 Debug.setListener(listener);
54 52
55 53
56 function test1() { 54 function test1() {
57 debugger; 55 debugger;
58 with ({x:1}) { 56 with ({x:1}) {
59 x = 2; 57 x = 2;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } catch(e) { 179 } catch(e) {
182 nop(); 180 nop();
183 } 181 }
184 182
185 183
186 function nop() {} 184 function nop() {}
187 185
188 186
189 // With block as the last(!) statement in global code. 187 // With block as the last(!) statement in global code.
190 with ({}) { debugger; } 188 with ({}) { debugger; }
OLDNEW
« no previous file with comments | « test/mjsunit/debug-continue.js ('k') | test/mjsunit/debug-stepout-scope-part2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698