diff options
Diffstat (limited to 'test/built-ins/Object/keys/15.2.3.14-5-a-3.js')
-rw-r--r-- | test/built-ins/Object/keys/15.2.3.14-5-a-3.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js index 25c069329..6c6a27f67 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js @@ -8,16 +8,18 @@ description: > is correct ---*/ - var obj = { prop1: 100 }; +var obj = { + prop1: 100 +}; - var array = Object.keys(obj); - var desc = Object.getOwnPropertyDescriptor(array, "0"); - var result = false; - for (var index in array) { - if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") { - result = true; - } - } +var array = Object.keys(obj); +var desc = Object.getOwnPropertyDescriptor(array, "0"); +var result = false; +for (var index in array) { + if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") { + result = true; + } +} assert(result, 'result !== true'); assert(desc.hasOwnProperty("enumerable"), 'desc.hasOwnProperty("enumerable") !== true'); |