summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js')
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js
index 5940f377e..6d8b4634d 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js
@@ -8,12 +8,7 @@ description: >
getter property)
---*/
-var o = {};
-Object.defineProperty(o, "foo", {
- get: function() {
- return 42;
- },
- enumerable: true
-});
+ var o = {};
+ Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');