summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-517.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-517.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js
index d47836e41..fd7bd5d47 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
- obj.prop = "overrideData";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');