summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-491.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-491.js56
1 files changed, 28 insertions, 28 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js
index 04c26899b..db3c1fba4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js
@@ -10,39 +10,39 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: true
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert.sameValue(result2, false, 'result2');