| 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 9ed1dbbedba3566054fed003dc240181f22b3f80..2348fb9ecfcce8761e553c89a1fd1bd6648aa849 100644
|
| --- a/test/mjsunit/debug-evaluate-locals-optimized-double.js
|
| +++ b/test/mjsunit/debug-evaluate-locals-optimized-double.js
|
| @@ -27,7 +27,7 @@
|
|
|
| // Flags: --expose-debug-as debug --allow-natives-syntax
|
| // Get the Debug object exposed from the debug context global object.
|
| -Debug = debug.Debug
|
| +Debug = debug.Debug;
|
|
|
| var listenerComplete = false;
|
| var exception = false;
|
| @@ -37,8 +37,7 @@ var testingConstructCall = false;
|
|
|
| function listener(event, exec_state, event_data, data) {
|
| try {
|
| - if (event == Debug.DebugEvent.Break)
|
| - {
|
| + if (event == Debug.DebugEvent.Break) {
|
| assertEquals(6, exec_state.frameCount());
|
|
|
| for (var i = 0; i < exec_state.frameCount(); i++) {
|
| @@ -119,11 +118,13 @@ function listener(event, exec_state, event_data, data) {
|
| listenerComplete = true;
|
| }
|
| } catch (e) {
|
| - exception = e
|
| - };
|
| -};
|
| + exception = e;
|
| + }
|
| +}
|
|
|
| -f();f();f();
|
| +f();
|
| +f();
|
| +f();
|
| %OptimizeFunctionOnNextCall(f);
|
| f();
|
|
|
| @@ -136,7 +137,7 @@ function h(x, y) {
|
| a = a + a / 100;
|
| b = b + b / 100;
|
| debugger; // Breakpoint.
|
| -};
|
| +}
|
|
|
| function g3(x, y) {
|
| var a = 3;
|
| @@ -145,7 +146,7 @@ function g3(x, y) {
|
| b = b + b / 100;
|
| h(a, b);
|
| return a+b;
|
| -};
|
| +}
|
|
|
| function g2(x, y) {
|
| var a = 5;
|
| @@ -153,7 +154,7 @@ function g2(x, y) {
|
| a = a + a / 100;
|
| b = b + b / 100;
|
| g3(a, b);
|
| -};
|
| +}
|
|
|
| function g1(x, y) {
|
| var a = 7;
|
| @@ -161,7 +162,7 @@ function g1(x, y) {
|
| a = a + a / 100;
|
| b = b + b / 100;
|
| g2(a, b);
|
| -};
|
| +}
|
|
|
| function f(x, y) {
|
| var a = 9;
|
| @@ -169,7 +170,7 @@ function f(x, y) {
|
| a = a + a / 100;
|
| b = b + b / 100;
|
| g1(a, b);
|
| -};
|
| +}
|
|
|
| // Test calling f normally and as a constructor.
|
| f(11.11, 12.12);
|
| @@ -177,7 +178,7 @@ testingConstructCall = true;
|
| new f(11.11, 12.12);
|
|
|
| // Make sure that the debug event listener vas invoked.
|
| -assertFalse(exception, "exception in listener " + exception)
|
| +assertFalse(exception, "exception in listener " + exception);
|
| assertTrue(listenerComplete);
|
|
|
| Debug.setListener(null);
|
|
|