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

Unified Diff: test/mjsunit/function-prototype.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/function-property.js ('k') | test/mjsunit/function-source.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/function-prototype.js
diff --git a/test/mjsunit/function-prototype.js b/test/mjsunit/function-prototype.js
index c5a5487dd0cbfe4f9ef4d8bb91b809f1059e13d3..76026210597718faab4f2daaa522d2762799352b 100644
--- a/test/mjsunit/function-prototype.js
+++ b/test/mjsunit/function-prototype.js
@@ -29,7 +29,7 @@
// prototype used for instances in that case should be the initial
// object prototype. ECMA-262 13.2.2.
function TestNonObjectPrototype(value) {
- function F() {};
+ function F() {}
F.prototype = value;
var f = new F();
assertEquals(value, F.prototype);
@@ -42,7 +42,7 @@ values.forEach(TestNonObjectPrototype);
// Test moving between non-object and object values.
-function F() {};
+function F() {}
var f = new F();
assertEquals(f.__proto__, F.prototype);
F.prototype = 42;
@@ -61,7 +61,7 @@ assertEquals(f.__proto__, F.prototype);
// functions.
function GetPrototypeOf(f) {
return f.prototype;
-};
+}
// Seed the GetPrototypeOf function to enable the fast case
// optimizations.
@@ -93,6 +93,6 @@ assertEquals(87, GetPrototypeOf({prototype:87}));
// Check the prototype is not enumerable, for compatibility with
// safari. This is deliberately incompatible with ECMA262, 15.3.5.2.
var foo = new Function("return x");
-var result = ""
+var result = "";
for (var n in foo) result += n;
assertEquals(result, "");
« no previous file with comments | « test/mjsunit/function-property.js ('k') | test/mjsunit/function-source.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698