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

Side by Side Diff: test/mjsunit/debug-stepin-accessor.js

Issue 9625011: Set debug break slot at init of loop variable in a for loop. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
Jakob Kummerow 2012/03/08 08:08:45 2012
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
11 // with the distribution. 11 // with the distribution.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 function testGetter1_2() { 105 function testGetter1_2() {
106 expected_function_name = 'getter1'; 106 expected_function_name = 'getter1';
107 expected_source_line_text = ' return this.name; // getter 1'; 107 expected_source_line_text = ' return this.name; // getter 1';
108 debugger; 108 debugger;
109 var x = c['getter1']; 109 var x = c['getter1'];
110 } 110 }
111 111
112 function testGetter1_3() { 112 function testGetter1_3() {
113 expected_function_name = 'getter1'; 113 expected_function_name = 'getter1';
114 expected_source_line_text = ' return this.name; // getter 1'; 114 expected_source_line_text = ' return this.name; // getter 1';
115 debugger;
116 for (var i = 1; i < 2; i++) { 115 for (var i = 1; i < 2; i++) {
116 debugger;
117 var x = c['getter' + i]; 117 var x = c['getter' + i];
Yang 2012/03/07 18:28:36 We want to break before accessing c, not before en
118 } 118 }
119 } 119 }
120 120
121 function testGetter1_4() { 121 function testGetter1_4() {
122 expected_function_name = 'getter1'; 122 expected_function_name = 'getter1';
123 expected_source_line_text = ' return this.name; // getter 1'; 123 expected_source_line_text = ' return this.name; // getter 1';
124 debugger; 124 debugger;
125 var x = d.c.getter1; 125 var x = d.c.getter1;
126 } 126 }
127 127
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 continue; 239 continue;
240 } 240 }
241 state = 1; 241 state = 1;
242 this[n](); 242 this[n]();
243 assertNull(exception); 243 assertNull(exception);
244 assertEquals(3, state); 244 assertEquals(3, state);
245 } 245 }
246 246
247 // Get rid of the debug event listener. 247 // Get rid of the debug event listener.
248 Debug.setListener(null); 248 Debug.setListener(null);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698