| Index: test/mjsunit/es6/debug-stepin-microtasks.js
|
| diff --git a/test/mjsunit/es6/debug-stepin-microtasks.js b/test/mjsunit/es6/debug-stepin-microtasks.js
|
| index e541f0f4b4a5a03ddf62a32105de24c07ffe4a7e..9e3bd172c801b5e855d058541295116a5d933941 100644
|
| --- a/test/mjsunit/es6/debug-stepin-microtasks.js
|
| +++ b/test/mjsunit/es6/debug-stepin-microtasks.js
|
| @@ -7,18 +7,12 @@
|
| Debug = debug.Debug
|
| var exception = null;
|
| var break_count = 0;
|
| -var expected_breaks = -1;
|
| +const expected_breaks = 9;
|
|
|
| function listener(event, exec_state, event_data, data) {
|
| try {
|
| if (event == Debug.DebugEvent.Break) {
|
| assertTrue(exec_state.frameCount() != 0, "FAIL: Empty stack trace");
|
| - if (!break_count) {
|
| - // Count number of expected breakpoints in this source file.
|
| - var source_text = exec_state.frame(0).func().script().source();
|
| - expected_breaks = source_text.match(/\/\/\s*Break\s+\d+\./g).length;
|
| - print("Expected breaks: " + expected_breaks);
|
| - }
|
| var source = exec_state.frame(0).sourceLineText();
|
| print("paused at: " + source);
|
| assertTrue(source.indexOf("// Break " + break_count + ".") > 0,
|
|
|