diff options
Diffstat (limited to 'test/built-ins/Object/freeze')
38 files changed, 163 insertions, 171 deletions
diff --git a/test/built-ins/Object/freeze/15.2.3.9-0-1.js b/test/built-ins/Object/freeze/15.2.3.9-0-1.js index 261f61d80..45b5cd824 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-0-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.9-0-1 description: Object.freeze must exist as a function ---*/ -var f = Object.freeze; + var f = Object.freeze; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-1.js b/test/built-ins/Object/freeze/15.2.3.9-1-1.js index 0d8e14854..76978ce78 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-1.js @@ -8,4 +8,4 @@ description: > undefined ---*/ -Object.freeze(undefined); + Object.freeze(undefined); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-2.js b/test/built-ins/Object/freeze/15.2.3.9-1-2.js index 91a2e93a1..9249c022a 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-2.js @@ -8,4 +8,4 @@ description: > null ---*/ -Object.freeze(null); + Object.freeze(null); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-3.js b/test/built-ins/Object/freeze/15.2.3.9-1-3.js index 6a97759d8..81c279ee8 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-3.js @@ -8,5 +8,5 @@ description: > boolean primitive ---*/ -Object.freeze(false); -Object.freeze(true); + Object.freeze(false); + Object.freeze(true); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-4.js b/test/built-ins/Object/freeze/15.2.3.9-1-4.js index cd3b22403..067469bcc 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-4.js @@ -8,4 +8,4 @@ description: > string primitive ---*/ -Object.freeze("abc"); + Object.freeze("abc"); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1.js b/test/built-ins/Object/freeze/15.2.3.9-1.js index d606706a2..a60b13e98 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1.js @@ -8,4 +8,4 @@ description: > not Object ---*/ -Object.freeze(0); + Object.freeze(0); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-1.js index 8dc4b4658..18d4ea221 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-1.js @@ -8,8 +8,8 @@ description: > no own property ---*/ -var obj = {}; + var obj = {}; -Object.freeze(obj); + Object.freeze(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-2.js index ba48691d6..61ebe20c1 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-2.js @@ -6,22 +6,22 @@ es5id: 15.2.3.9-2-2 description: Object.freeze - inherited data properties are not frozen ---*/ -var proto = {}; + var proto = {}; -Object.defineProperty(proto, "Father", { - value: 10, - configurable: true -}); + Object.defineProperty(proto, "Father", { + value: 10, + configurable: true + }); -var Con = function() {}; -Con.prototype = proto; + var Con = function () { }; + Con.prototype = proto; -var child = new Con(); -Object.freeze(child); + var child = new Con(); + Object.freeze(child); -var beforeDeleted = proto.hasOwnProperty("Father"); -delete proto.Father; -var afterDeleted = proto.hasOwnProperty("Father"); + var beforeDeleted = proto.hasOwnProperty("Father"); + delete proto.Father; + var afterDeleted = proto.hasOwnProperty("Father"); assert(beforeDeleted, 'beforeDeleted !== true'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-3.js index 5c171f1ac..19114667e 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-3.js @@ -6,24 +6,24 @@ es5id: 15.2.3.9-2-3 description: Object.freeze - inherited accessor properties are not frozen ---*/ -var proto = {}; + var proto = {}; -Object.defineProperty(proto, "Father", { - get: function() { - return 10; - }, - configurable: true -}); + Object.defineProperty(proto, "Father", { + get: function () { + return 10; + }, + configurable: true + }); -var Con = function() {}; -Con.prototype = proto; + var Con = function () { }; + Con.prototype = proto; -var child = new Con(); -Object.freeze(child); + var child = new Con(); + Object.freeze(child); -var beforeDeleted = proto.hasOwnProperty("Father"); -delete proto.Father; -var afterDeleted = proto.hasOwnProperty("Father"); + var beforeDeleted = proto.hasOwnProperty("Father"); + delete proto.Father; + var afterDeleted = proto.hasOwnProperty("Father"); assert(beforeDeleted, 'beforeDeleted !== true'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-4.js index ba3d34bae..2de41643a 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-4.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - enumerable: false, - configurable: true + value: 10, + enumerable: false, + configurable: true }); Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js index 914894864..91f1c1a01 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js @@ -11,9 +11,7 @@ includes: [propertyHelper.js] // default [[Configurable]] attribute value of "0": true -var argObj = (function() { - return arguments; -}(1, 2, 3)); +var argObj = (function () { return arguments; }(1, 2, 3)); Object.freeze(argObj); @@ -22,3 +20,4 @@ var desc = Object.getOwnPropertyDescriptor(argObj, "0"); verifyNotWritable(argObj, "0"); verifyNotConfigurable(argObj, "0"); assert.sameValue(argObj[0], 1); + diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js index ed8efa0fd..1abca86d8 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js @@ -9,11 +9,7 @@ includes: [propertyHelper.js] // default [[Configurable]] attribute value of "0": true -var obj = { - 0: 0, - 1: 1, - length: 2 -}; +var obj = { 0: 0, 1: 1, length: 2}; Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js index 23e20c425..b5a0f7536 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js @@ -10,11 +10,9 @@ includes: [propertyHelper.js] ---*/ -var proto = { - foo: 0 -}; // default [[Configurable]] attribute value of foo: true +var proto = { foo: 0 }; // default [[Configurable]] attribute value of foo: true -var Con = function() {}; +var Con = function () { }; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js index f84894b00..f623c5e93 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js @@ -12,19 +12,19 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "foo", { - get: function() { - return 0; - }, - configurable: true + get: function () { + return 0; + }, + configurable: true }); -var Con = function() {}; +var Con = function () { }; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "foo", { - value: 10, - configurable: true + value: 10, + configurable: true }); Object.freeze(child); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js index e8d22fca0..6a5212d02 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js @@ -10,10 +10,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - get: function() { - return 10; - }, - configurable: true + get: function () { + return 10; + }, + configurable: true }); Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js index 598187ff9..1ffa486a1 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js @@ -14,16 +14,16 @@ var proto = {}; proto.foo = 0; // default [[Configurable]] attribute value of foo: true -var Con = function() {}; +var Con = function () { }; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "foo", { - get: function() { - return 10; - }, - configurable: true + get: function () { + return 10; + }, + configurable: true }); Object.freeze(child); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js index 6295b1f08..3f5bb5c03 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js @@ -12,22 +12,22 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "foo", { - get: function() { - return 0; - }, - configurable: true + get: function () { + return 0; + }, + configurable: true }); -var Con = function() {}; +var Con = function () { }; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "foo", { - get: function() { - return 10; - }, - configurable: true + get: function () { + return 10; + }, + configurable: true }); Object.freeze(child); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js index 75024a84b..4f24b0f63 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js @@ -9,9 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var argObj = (function() { - return arguments; -}()); +var argObj = (function () { return arguments; }()); argObj.foo = 10; // default [[Configurable]] attribute value of foo: true diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js index e4b21256b..c7dcdf73c 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var funObj = function() {}; +var funObj = function () { }; funObj.foo = 10; // default [[Configurable]] attribute value of foo: true diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js index 96de0e1f7..46362bcd3 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - writable: true, - enumerable: true, - configurable: false + value: 10, + writable: true, + enumerable: true, + configurable: false }); Object.freeze(obj); @@ -30,9 +30,10 @@ verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); if (desc.writable !== false) { - $ERROR('Expected desc.writable === false, actually ' + desc.writable); + $ERROR('Expected desc.writable === false, actually ' + desc.writable); } if (desc.configurable !== false) { - $ERROR('Expected desc.configurable === false, actually ' + desc.configurable); + $ERROR('Expected desc.configurable === false, actually ' + desc.configurable); } + diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js index 150f18635..5c6f4c28a 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js @@ -13,17 +13,17 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: false + value: 10, + writable: false, + enumerable: true, + configurable: false }); Object.defineProperty(obj, "foo2", { - value: 20, - writable: true, - enumerable: false, - configurable: false + value: 20, + writable: true, + enumerable: false, + configurable: false }); Object.freeze(obj); @@ -48,17 +48,18 @@ verifyNotEnumerable(obj, "foo2"); verifyNotConfigurable(obj, "foo2"); if (desc1.configurable !== false) { - $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable); + $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable); } if (desc1.writable !== false) { - $ERROR('Expected desc1.writable === false, actually ' + desc1.writable); + $ERROR('Expected desc1.writable === false, actually ' + desc1.writable); } if (desc2.configurable !== false) { - $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable); + $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable); } if (desc2.writable !== false) { - $ERROR('Expected desc2.writable === false, actually ' + desc2.writable); + $ERROR('Expected desc2.writable === false, actually ' + desc2.writable); } + diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js index ea4ad70ea..12bd46769 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - enumerable: true, - configurable: true + value: 10, + writable: false, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -24,10 +24,10 @@ Object.freeze(obj); var desc = Object.getOwnPropertyDescriptor(obj, "foo"); if (desc.configurable !== false) { - $ERROR("Expected desc.configurable to be false, actually " + desc.configurable); + $ERROR("Expected desc.configurable to be false, actually " + desc.configurable); } if (desc.writable !== false) { - $ERROR("Expected desc.writable to be false, actually " + desc.writable); + $ERROR("Expected desc.writable to be false, actually " + desc.writable); } verifyEqualTo(obj, "foo", 10); @@ -37,3 +37,4 @@ verifyNotWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); + diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js index 59bdbad51..e40f69a8d 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js @@ -13,20 +13,19 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } var set_funcCalled = false; - function set_func() { - set_funcCalled = true; + set_funcCalled = true; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js index 5f0d7c1d2..06f74d5b6 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js @@ -14,25 +14,25 @@ var obj = {}; var resultSetFun = false; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: true + value: 10, + writable: false, + enumerable: true, + configurable: true }); function get_func() { - return 10; + return 10; } function set_func() { - resultSetFun = true; + resultSetFun = true; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -42,21 +42,21 @@ verifyEqualTo(obj, "foo2", 10); obj.foo2 = 12; if (!resultSetFun) { - $ERROR('Expected obj["foo2"] set() to be called, but was not.'); + $ERROR('Expected obj["foo2"] set() to be called, but was not.'); } if (!isEnumerable(obj, "foo2")) { - $ERROR('Expected obj["foo2"] to be enumerable.'); + $ERROR('Expected obj["foo2"] to be enumerable.'); } var desc1 = Object.getOwnPropertyDescriptor(obj, "foo1"); if (desc1.configurable || desc1.writable) { - $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); + $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); } var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2"); if (desc2.configurable || desc2.writable) { - $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); + $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); } verifyEqualTo(obj, "foo1", 10); @@ -66,3 +66,4 @@ verifyNotWritable(obj, "foo1"); verifyEnumerable(obj, "foo1"); verifyNotConfigurable(obj, "foo1"); + diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js index 6723c16f0..53cfacb65 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js @@ -13,25 +13,25 @@ var obj = {}; var resultSetFun = false; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: false + value: 10, + writable: false, + enumerable: true, + configurable: false }); function get_func() { - return 10; + return 10; } function set_func() { - resultSetFun = true; + resultSetFun = true; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -42,19 +42,19 @@ verifyNotConfigurable(obj, "foo2"); obj.foo2 = 12; if (!resultSetFun) { - $ERROR('Expected obj["foo2"] set() to be called, but was not.'); + $ERROR('Expected obj["foo2"] set() to be called, but was not.'); } verifyEnumerable(obj, "foo2"); var desc1 = Object.getOwnPropertyDescriptor(obj, "foo1"); if (desc1.configurable || desc1.writable) { - $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); + $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); } var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2"); if (desc2.configurable || desc2.writable) { - $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); + $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); } verifyEqualTo(obj, "foo1", 10); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js index 08e133137..5a7b953d7 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-1 description: Object.freeze - 'O' is a Function object ---*/ -var funObj = function() {}; + var funObj = function () { }; -Object.freeze(funObj); + Object.freeze(funObj); assert(Object.isFrozen(funObj), 'Object.isFrozen(funObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js index 4476444b0..00b492ac8 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-2 description: Object.freeze - 'O' is an Array object ---*/ -var arrObj = [0, 1]; + var arrObj = [0, 1]; -Object.freeze(arrObj); + Object.freeze(arrObj); assert(Object.isFrozen(arrObj), 'Object.isFrozen(arrObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js index e361b904f..0abb0a7ee 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-3 description: Object.freeze - 'O' is a String object ---*/ -var strObj = new String("a"); + var strObj = new String("a"); -Object.freeze(strObj); + Object.freeze(strObj); assert(Object.isFrozen(strObj), 'Object.isFrozen(strObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js index 160f13969..02994757c 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-4 description: Object.freeze - 'O' is a Boolean object ---*/ -var boolObj = new Boolean(false); + var boolObj = new Boolean(false); -Object.freeze(boolObj); + Object.freeze(boolObj); assert(Object.isFrozen(boolObj), 'Object.isFrozen(boolObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js index bd55c8c7e..3b22cfa10 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-5 description: Object.freeze - 'O' is a Number object ---*/ -var numObj = new Number(3); + var numObj = new Number(3); -Object.freeze(numObj); + Object.freeze(numObj); assert(Object.isFrozen(numObj), 'Object.isFrozen(numObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js index 1b82d6561..f07460a8c 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-6 description: Object.freeze - 'O' is a Date object ---*/ -var dateObj = new Date(); + var dateObj = new Date(); -Object.freeze(dateObj); + Object.freeze(dateObj); assert(Object.isFrozen(dateObj), 'Object.isFrozen(dateObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js index d8245d903..b855a071c 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-7 description: Object.freeze - 'O' is a RegExp object ---*/ -var regObj = new RegExp(); + var regObj = new RegExp(); -Object.freeze(regObj); + Object.freeze(regObj); assert(Object.isFrozen(regObj), 'Object.isFrozen(regObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js index 7afbbd574..34e2648c4 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-8 description: Object.freeze - 'O' is an Error object ---*/ -var errObj = new SyntaxError(); + var errObj = new SyntaxError(); -Object.freeze(errObj); + Object.freeze(errObj); assert(Object.isFrozen(errObj), 'Object.isFrozen(errObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js index 2779fd7e8..877a8ba88 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js @@ -6,10 +6,8 @@ es5id: 15.2.3.9-2-d-9 description: Object.freeze - 'O' is the Arguments object ---*/ -var argObj = (function() { - return arguments; -}()); + var argObj = (function () { return arguments; } ()); -Object.freeze(argObj); + Object.freeze(argObj); assert(Object.isFrozen(argObj), 'Object.isFrozen(argObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-3-1.js b/test/built-ins/Object/freeze/15.2.3.9-3-1.js index 64a970518..be171a5d4 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-3-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-3-1.js @@ -6,7 +6,7 @@ es5id: 15.2.3.9-3-1 description: Object.freeze - returned object is not extensible ---*/ -var obj = {}; -Object.freeze(obj); + var obj = {}; + Object.freeze(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-1.js b/test/built-ins/Object/freeze/15.2.3.9-4-1.js index dabf74a65..68169779a 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-4-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-4-1.js @@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-1 description: Object.freeze - 'O' is sealed already ---*/ -var obj = {}; + var obj = {}; -obj.foo = 10; // default value of attributes: writable: true, enumerable: true + obj.foo = 10; // default value of attributes: writable: true, enumerable: true -Object.seal(obj); + Object.seal(obj); -Object.freeze(obj); + Object.freeze(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-2.js b/test/built-ins/Object/freeze/15.2.3.9-4-2.js index 3bf475a59..1dd1d3350 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-4-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-4-2.js @@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-2 description: Object.freeze - 'O' is frozen already ---*/ -var obj = {}; + var obj = {}; -obj.foo = 10; // default value of attributes: writable: true, enumerable: true + obj.foo = 10; // default value of attributes: writable: true, enumerable: true -Object.freeze(obj); + Object.freeze(obj); -Object.freeze(obj); + Object.freeze(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-3.js b/test/built-ins/Object/freeze/15.2.3.9-4-3.js index 8c4098a1f..4e3623cac 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-4-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-4-3.js @@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-3 description: Object.freeze - the extensions of 'O' is prevented already ---*/ -var obj = {}; + var obj = {}; -obj.foo = 10; // default value of attributes: writable: true, enumerable: true + obj.foo = 10; // default value of attributes: writable: true, enumerable: true -Object.preventExtensions(obj); + Object.preventExtensions(obj); -Object.freeze(obj); + Object.freeze(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); |