diff options
Diffstat (limited to 'test/built-ins/Object/freeze/15.2.3.9-2-c-3.js')
-rw-r--r-- | test/built-ins/Object/freeze/15.2.3.9-2-c-3.js | 29 |
1 files changed, 15 insertions, 14 deletions
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"); + |