diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2018-02-15 15:33:45 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 15:33:45 -0500 |
commit | a61b9cd671f3378c4078c0a58dd8b8be073f8cef (patch) | |
tree | 1d0e29b2fc9477ac9956c904ea051e29c3b13f2d /test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js | |
parent | dedd68020b222fe79fb4fe9f84465e842e4ca61f (diff) |
built-ins/Object/*: make all indentation consistent (depth & character) (#1432)
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js index e98a8856e..72caa7243 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js @@ -9,37 +9,37 @@ description: > (8.10.5 step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - - var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data1 = value; - }; - } - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); - - var obj = {}; - - Object.defineProperties(obj, { - prop: child - }); - - obj.prop = "overrideData"; +var data1 = "data"; +var data2 = "data"; + +var proto = {}; +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data1 = value; + }; + } +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); + +var obj = {}; + +Object.defineProperties(obj, { + prop: child +}); + +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data2, "overrideData", 'data2'); |