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

Unified Diff: test/mjsunit/debug-evaluate-locals-optimized.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/debug-evaluate-locals.js ('k') | test/mjsunit/debug-evaluate-locals-optimized-double.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/debug-evaluate-locals.js ('k') | test/mjsunit/debug-evaluate-locals-optimized-double.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698