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

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

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
Index: test/mjsunit/regress/regress-799761.js
diff --git a/test/mjsunit/regress/regress-799761.js b/test/mjsunit/regress/regress-799761.js
index d3be1bdadf7c4d98988409905d8b87c5ececd1d6..a92f8bcb96b93a71c2937adfd4a646f8e6bf7672 100644
--- a/test/mjsunit/regress/regress-799761.js
+++ b/test/mjsunit/regress/regress-799761.js
@@ -48,12 +48,12 @@ assertEquals(42, c);
// their value is undefined.
(function (sel) {
- if (sel == 0)
+ if (sel == 0) {
with ({ x: 42 }) {
const x;
}
- else
- x = 3;
+ }
Rico 2011/12/08 10:24:37 else up and add {} for else
+ else x = 3;
x = 5;
assertTrue(typeof x == 'undefined');
})(1);
@@ -77,7 +77,7 @@ assertEquals(42, c);
with ({ x: 42 }) {
const x = 7;
}
- x = 5
+ x = 5;
bar();
})();

Powered by Google App Engine
This is Rietveld 408576698