summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-2-46.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-46.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js
index cca20e2ee..49c5bbc73 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js
@@ -8,21 +8,21 @@ description: >
toString and valueOf method
---*/
- var obj = {};
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var obj = {};
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "prop";
- }
- };
- Object.defineProperty(obj, ownProp, {});
+var ownProp = {
+ toString: function() {
+ toStringAccessed = true;
+ return "abc";
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return "prop";
+ }
+};
+Object.defineProperty(obj, ownProp, {});
assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
assert.sameValue(valueOfAccessed, false, 'valueOfAccessed');