summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js')
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js
index def72f4f6..f70509eca 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js
@@ -8,11 +8,13 @@ description: >
a String object
---*/
- var strObj = new String();
- var preCheck = Object.isExtensible(strObj);
- Object.preventExtensions(strObj);
+var strObj = new String();
+var preCheck = Object.isExtensible(strObj);
+Object.preventExtensions(strObj);
assert.throws(TypeError, function() {
- Object.defineProperty(strObj, "0", { value: "c" });
+ Object.defineProperty(strObj, "0", {
+ value: "c"
+ });
});
assert(preCheck, 'preCheck !== true');
assert.sameValue(strObj.hasOwnProperty("0"), false, 'strObj.hasOwnProperty("0")');