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

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: 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/object-define-property.js
diff --git a/test/mjsunit/object-define-property.js b/test/mjsunit/object-define-property.js
index ee6083a8995f84c8313da480f511c59adaf3a675..500bb9acd7ad07f1f804f952e0144749673499b5 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;}
Rico 2011/12/08 10:24:37 spaces around the body + below (I wonder who wrote
+function set(x){this.x=x;}
var obj3 = {x:1000};
obj3.__defineGetter__("foo", get);

Powered by Google App Engine
This is Rietveld 408576698