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

Unified Diff: test/mjsunit/object-freeze.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-define-property.js ('k') | test/mjsunit/object-get-own-property-names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/object-freeze.js
diff --git a/test/mjsunit/object-freeze.js b/test/mjsunit/object-freeze.js
index c3a9278bbd9c4629489f143e52cedba78684ddb4..797d378e5aaf3f2945cd4a170edf1bf975240832 100644
--- a/test/mjsunit/object-freeze.js
+++ b/test/mjsunit/object-freeze.js
@@ -91,13 +91,13 @@ assertEquals("foobar", desc.value);
// not changed.
obj.x = "tete";
assertEquals(42, obj.x);
-obj.x = { get: function() {return 43}, set: function() {} };
+obj.x = { get: function() {return 43;}, set: function() {} };
assertEquals(42, obj.x);
// Test on accessors.
var obj2 = {};
-function get() { return 43; };
-function set() {};
+function get() { return 43; }
+function set() {}
Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true });
desc = Object.getOwnPropertyDescriptor(obj2, 'x');
@@ -189,5 +189,5 @@ Object.preventExtensions(obj5);
assertFalse(Object.isFrozen(obj5));
// Make sure that Object.freeze returns the frozen object.
-var obj6 = {}
-assertTrue(obj6 === Object.freeze(obj6))
+var obj6 = {};
+assertTrue(obj6 === Object.freeze(obj6));
« no previous file with comments | « test/mjsunit/object-define-property.js ('k') | test/mjsunit/object-get-own-property-names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698