diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js index e841730be..455e6ecc5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js @@ -8,27 +8,27 @@ description: > inherited accessor property (8.10.5 step 3.a) ---*/ - var obj = {}; - var proto = {}; - var accessed = false; +var obj = {}; +var proto = {}; +var accessed = false; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); |