Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: test/mjsunit/regress/regress-1081309.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress/regress-1062422.js ('k') | test/mjsunit/regress/regress-1099.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « test/mjsunit/regress/regress-1062422.js ('k') | test/mjsunit/regress/regress-1099.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698