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

Unified Diff: test/mjsunit/object-define-property.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/object-create.js ('k') | test/mjsunit/object-freeze.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/object-define-property.js
diff --git a/test/mjsunit/object-define-property.js b/test/mjsunit/object-define-property.js
index ee6083a8995f84c8313da480f511c59adaf3a675..a4f4de85abd32ab953c5d595ef26faa70935213a 100644
--- a/test/mjsunit/object-define-property.js
+++ b/test/mjsunit/object-define-property.js
@@ -178,7 +178,7 @@ assertEquals(desc.value, undefined);
assertEquals(1, obj1.bar = 1);
assertEquals(2, val1);
assertEquals(1, val2);
-assertEquals(1, obj1.bar = 1)
+assertEquals(1, obj1.bar = 1);
assertEquals(2, val1);
assertEquals(2, val2);
assertEquals(2, obj1.bar);
@@ -211,7 +211,7 @@ assertEquals(desc.value, undefined);
assertEquals(1, obj1.bar = 1);
assertEquals(2, val1);
assertEquals(3, val2);
-assertEquals(1, obj1.bar = 1)
+assertEquals(1, obj1.bar = 1);
assertEquals(2, val1);
assertEquals(4, val2);
assertEquals(4, obj1.bar);
@@ -362,7 +362,7 @@ assertEquals(4, val2);
assertEquals(3, obj2.foo);
// Make data - redefine to accessor
-Object.defineProperty(obj2, "bar", dataConfigurable)
+Object.defineProperty(obj2, "bar", dataConfigurable);
// Redefine to accessor property
Object.defineProperty(obj2, "bar", accessorConfigurable);
@@ -392,8 +392,8 @@ assertEquals(desc.set, undefined);
// Redefinition of an accessor defined using __defineGetter__ and
// __defineSetter__.
-function get(){return this.x}
-function set(x){this.x=x};
+function get() { return this.x; }
+function set(x) { this.x = x; }
var obj3 = {x:1000};
obj3.__defineGetter__("foo", get);
« no previous file with comments | « test/mjsunit/object-create.js ('k') | test/mjsunit/object-freeze.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698