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

Unified Diff: test/mjsunit/compiler/objectliterals.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/compiler/null-compare.js ('k') | test/mjsunit/compiler/pic.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/objectliterals.js
diff --git a/test/mjsunit/compiler/objectliterals.js b/test/mjsunit/compiler/objectliterals.js
index 788acb4805927cc3b93c566247c509911e398b42..b1b24609af8c4f98b81cef7c64e982dcccb82743 100644
--- a/test/mjsunit/compiler/objectliterals.js
+++ b/test/mjsunit/compiler/objectliterals.js
@@ -27,16 +27,16 @@
// Test object literals with getter, setter and prototype properties.
-var o = { x: 41, get bar() { return {x:42} } };
+var o = { x: 41, get bar() { return {x:42}; } };
assertEquals(41, o.x);
assertEquals(42, o.bar.x);
-o = { f: function() { return 41 },
- get bar() { return this.x },
+o = { f: function() { return 41; },
+ get bar() { return this.x; },
x:0,
- set bar(t) { this.x = t },
- g: function() { return 43 }
+ set bar(t) { this.x = t; },
+ g: function() { return 43; }
};
o.bar = 7;
assertEquals(7, o.bar);
@@ -46,7 +46,7 @@ assertEquals(43, o.g());
p = {x:42};
o = {get foo() { return this.x; },
- f: function() { return this.foo + 1 },
+ f: function() { return this.foo + 1; },
set bar(t) { this.x = t; },
__proto__: p,
};
« no previous file with comments | « test/mjsunit/compiler/null-compare.js ('k') | test/mjsunit/compiler/pic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698