Index: test/mjsunit/es6/debug-step-into-constructor.js |
diff --git a/test/mjsunit/es6/debug-step-into-constructor.js b/test/mjsunit/es6/debug-step-into-constructor.js |
index dfe98a9947e4640418955b4a05d0d60280428e04..66fc0b99d0ffcbf0d02724da76de3843c964858f 100644 |
--- a/test/mjsunit/es6/debug-step-into-constructor.js |
+++ b/test/mjsunit/es6/debug-step-into-constructor.js |
@@ -14,6 +14,7 @@ function listener(event, execState, eventData, data) { |
if (!done) { |
execState.prepareStep(Debug.StepAction.StepInto); |
var s = execState.frame().sourceLineText(); |
+ print(s); |
assertTrue(s.indexOf('// ' + stepCount + '.') !== -1); |
stepCount++; |
} |
@@ -24,10 +25,10 @@ Debug.setListener(listener); |
class Base { |
- constructor() { |
- var x = 1; // 1. |
- var y = 2; // 2. |
- done = true; // 3. |
+ constructor() { // 1. |
+ var x = 1; // 2. |
+ var y = 2; // 3. |
+ done = true; // 4. |
} |
} |
@@ -40,7 +41,7 @@ class Derived extends Base {} |
var bp = Debug.setBreakPoint(Base, 0); |
new Base(); |
- assertEquals(4, stepCount); |
+ assertEquals(5, stepCount); |
Debug.clearBreakPoint(bp); |
})(); |
@@ -52,7 +53,7 @@ class Derived extends Base {} |
var bp = Debug.setBreakPoint(Base, 0); |
new Derived(); |
- assertEquals(4, stepCount); |
+ assertEquals(5, stepCount); |
Debug.clearBreakPoint(bp); |
})(); |
@@ -68,7 +69,7 @@ class Derived extends Base {} |
var bp = Debug.setBreakPoint(f, 0); |
f(); |
- assertEquals(4, stepCount); |
+ assertEquals(5, stepCount); |
Debug.clearBreakPoint(bp); |
})(); |
@@ -86,7 +87,7 @@ class Derived extends Base {} |
var bp = Debug.setBreakPoint(f, 0); |
f(); |
- assertEquals(4, stepCount); |
+ assertEquals(5, stepCount); |
Debug.clearBreakPoint(bp); |
})(); |
@@ -104,7 +105,7 @@ class Derived extends Base {} |
var bp = Debug.setBreakPoint(f, 0); |
f(); |
- assertEquals(4, stepCount); |
+ assertEquals(5, stepCount); |
Debug.clearBreakPoint(bp); |
})(); |