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

Unified Diff: test/mjsunit/arguments-read-and-assignment.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/arguments-read-and-assignment.js
diff --git a/test/mjsunit/arguments-read-and-assignment.js b/test/mjsunit/arguments-read-and-assignment.js
index c5d34bfa9b1a96f0eac540db8079a4eadea9f20b..75da888345c161b94ab1625c170e722a3dec575e 100644
--- a/test/mjsunit/arguments-read-and-assignment.js
+++ b/test/mjsunit/arguments-read-and-assignment.js
@@ -31,9 +31,9 @@ assertEquals(42, function(){ return arguments;}(42)[0],
"return arguments value");
assertEquals(42, function(){ return arguments;}(42)[0],
Rico 2011/12/08 10:24:37 space after arguments;
"arguments in plain value context");
-assertEquals(42, function(){ arguments;return 42}(37),
+assertEquals(42, function(){ arguments; return 42; }(37),
"arguments in effect context");
-assertEquals(42, function(){ if(arguments)return 42;}(),
+assertEquals(42, function(){ if(arguments) return 42;}(),
Rico 2011/12/08 10:24:37 space after 42;
"arguments in a boolean context");
assertEquals(42, function(){ return arguments || true;}(42)[0],
Rico 2011/12/08 10:24:37 space after true;
"arguments in a short-circuit boolean context - or");
@@ -44,7 +44,7 @@ assertEquals(42, function(){ arguments = 42; return 42;}(),
// Properties of the arguments object.
assertEquals(42, function(){ return arguments[0]; }(42),
"args[0] value returned");
-assertEquals(42, function(){ arguments[0]; return 42}(),
+assertEquals(42, function(){ arguments[0]; return 42; }(),
"args[0] value ignored");
assertEquals(42, function(){ if (arguments[0]) return 42; }(37),
"args[0] to boolean");
@@ -150,7 +150,7 @@ assertEquals(42,
arguments[0] = 12;
with ({ b : 22 }) {
return function f() {
- try { throw 8 } catch(e) { return e + a };
+ try { throw 8; } catch(e) { return e + a; }
}() + b;
Rico 2011/12/08 10:24:37 indention
}
}(37),

Powered by Google App Engine
This is Rietveld 408576698