| Index: test/mjsunit/debug-evaluate-locals-optimized.js
|
| diff --git a/test/mjsunit/debug-evaluate-locals-optimized.js b/test/mjsunit/debug-evaluate-locals-optimized.js
|
| index 683c139d833e383b459a5b2c36e6f7815a3aef89..315abba49ec59460bfba0acdbc227a7a75108f37 100644
|
| --- a/test/mjsunit/debug-evaluate-locals-optimized.js
|
| +++ b/test/mjsunit/debug-evaluate-locals-optimized.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();
|
|
|
| @@ -134,31 +135,31 @@ function h(x, y) {
|
| var a = 1;
|
| var b = 2;
|
| debugger; // Breakpoint.
|
| -};
|
| +}
|
|
|
| function g3(x, y) {
|
| var a = 3;
|
| var b = 4;
|
| h(a, b);
|
| -};
|
| +}
|
|
|
| function g2(x, y) {
|
| var a = 5;
|
| var b = 6;
|
| g3(a, b);
|
| -};
|
| +}
|
|
|
| function g1(x, y) {
|
| var a = 7;
|
| var b = 8;
|
| g2(a, b);
|
| -};
|
| +}
|
|
|
| function f(x, y) {
|
| var a = 9;
|
| var b = 10;
|
| g1(a, b);
|
| -};
|
| +}
|
|
|
| // Test calling f normally and as a constructor.
|
| f(11, 12);
|
| @@ -166,7 +167,7 @@ testingConstructCall = true;
|
| new f(11, 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);
|
|
|