| Index: test/mjsunit/debug-evaluate-locals-optimized-double.js
|
| diff --git a/test/mjsunit/debug-evaluate-locals-optimized-double.js b/test/mjsunit/debug-evaluate-locals-optimized-double.js
|
| index bbe78d62360abdf83258b25bb53f9e28d6f981ac..584d1afdab5a0133c2563e10c1f973aa1968941a 100644
|
| --- a/test/mjsunit/debug-evaluate-locals-optimized-double.js
|
| +++ b/test/mjsunit/debug-evaluate-locals-optimized-double.js
|
| @@ -29,8 +29,10 @@
|
| // Get the Debug object exposed from the debug context global object.
|
| Debug = debug.Debug
|
|
|
| -listenerComplete = false;
|
| -exception = false;
|
| +var listenerComplete = false;
|
| +var exception = false;
|
| +
|
| +var testingConstructCall = false;
|
|
|
|
|
| function listener(event, exec_state, event_data, data) {
|
| @@ -70,6 +72,9 @@ function listener(event, exec_state, event_data, data) {
|
| default: assertUnreachable();
|
| }
|
|
|
| + // Check for construct call.
|
| + assertEquals(testingConstructCall && i == 4, frame.isConstructCall());
|
| +
|
| // When function f is optimized (2 means YES, see runtime.cc) we
|
| // expect an optimized frame for f with g1, g2 and g3 inlined.
|
| if (%GetOptimizationStatus(f) == 2) {
|
| @@ -142,7 +147,10 @@ function f(x, y) {
|
| g1(a, b);
|
| };
|
|
|
| +// Test calling f normally and as a constructor.
|
| f(11.11, 12.12);
|
| +testingConstructCall = true;
|
| +new f(11.11, 12.12);
|
|
|
| // Make sure that the debug event listener vas invoked.
|
| assertFalse(exception, "exception in listener " + exception)
|
|
|