summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-138.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-138.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js
index 1c0616d17..7d8496fe5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js
@@ -9,19 +9,21 @@ description: >
5.a)
---*/
- var obj = { property : 120 };
+var obj = {
+ property: 120
+};
- var proto = {};
- Object.defineProperty(proto, "value", {
- set: function () { }
- });
+var proto = {};
+Object.defineProperty(proto, "value", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');