diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-243.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-243.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js index f343f73a4..a324607a0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js @@ -9,30 +9,30 @@ description: > (8.10.5 step 8.a) ---*/ - var obj = {}; - var data1 = "data"; - var data2 = "data"; +var obj = {}; +var data1 = "data"; +var data2 = "data"; - var proto = { - set: function (value) { - data1 = value; - } - }; +var proto = { + set: function(value) { + data1 = value; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); - Object.defineProperty(obj, "property", child); - obj.property = "ownAccessorProperty"; +Object.defineProperty(obj, "property", child); +obj.property = "ownAccessorProperty"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data1, "data", 'data1'); |