| Index: test/mjsunit/regress/regress-1081309.js
|
| diff --git a/test/mjsunit/regress/regress-1081309.js b/test/mjsunit/regress/regress-1081309.js
|
| index 5a6c52412ed77bb953e985d63eaec6b93ba26b61..477c96d399ead5bc48fc4642516cbb91fa4dd4f5 100644
|
| --- a/test/mjsunit/regress/regress-1081309.js
|
| +++ b/test/mjsunit/regress/regress-1081309.js
|
| @@ -27,7 +27,7 @@
|
|
|
| // Flags: --expose-debug-as debug
|
| // Get the Debug object exposed from the debug context global object.
|
| -Debug = debug.Debug
|
| +Debug = debug.Debug;
|
|
|
| // Make sure that the backtrace command can be processed when the receiver is
|
| // undefined.
|
| @@ -47,23 +47,22 @@ function ParsedResponse(json) {
|
|
|
| ParsedResponse.prototype.response = function() {
|
| return this.response_;
|
| -}
|
| +};
|
|
|
|
|
| ParsedResponse.prototype.body = function() {
|
| return this.response_.body;
|
| -}
|
| +};
|
|
|
|
|
| ParsedResponse.prototype.lookup = function(handle) {
|
| return this.refs_[handle];
|
| -}
|
| +};
|
|
|
|
|
| function listener(event, exec_state, event_data, data) {
|
| try {
|
| - if (event == Debug.DebugEvent.Exception)
|
| - {
|
| + if (event == Debug.DebugEvent.Exception) {
|
| // The expected backtrace is
|
| // 1: g
|
| // 0: [anonymous]
|
| @@ -73,7 +72,7 @@ function listener(event, exec_state, event_data, data) {
|
|
|
| // Get the backtrace.
|
| var json;
|
| - json = '{"seq":0,"type":"request","command":"backtrace"}'
|
| + json = '{"seq":0,"type":"request","command":"backtrace"}';
|
| var response = new ParsedResponse(dcp.processDebugJSONRequest(json));
|
| var backtrace = response.body();
|
| assertEquals(2, backtrace.totalFrames);
|
| @@ -85,9 +84,9 @@ function listener(event, exec_state, event_data, data) {
|
| listenerCalled = true;
|
| }
|
| } catch (e) {
|
| - exception = e
|
| - };
|
| -};
|
| + exception = e;
|
| + }
|
| +}
|
|
|
| // Add the debug event listener.
|
| Debug.setListener(listener);
|
| @@ -95,7 +94,7 @@ Debug.setListener(listener);
|
| // Call method on undefined.
|
| function g() {
|
| (void 0).f();
|
| -};
|
| +}
|
|
|
| // Break on the exception to do a backtrace with undefined as receiver.
|
| Debug.setBreakOnException(true);
|
| @@ -105,6 +104,6 @@ try {
|
| // Ignore the exception "Cannot call method 'x' of undefined"
|
| }
|
|
|
| -assertFalse(exception, "exception in listener", exception)
|
| +assertFalse(exception, "exception in listener", exception);
|
| // Make sure that the debug event listener vas invoked.
|
| assertTrue(listenerCalled, "listener not called");
|
|
|