diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js index 3e0f737a2..af68740f0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var descObj = new RegExp(); - var setFun = function (value) { - data = value; - }; - descObj.prop = { - set: setFun - }; +var data = "data"; +var descObj = new RegExp(); +var setFun = function(value) { + data = value; +}; +descObj.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descObj); - obj.prop = "regExpData"; +var obj = {}; +Object.defineProperties(obj, descObj); +obj.prop = "regExpData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "regExpData", 'data'); |