summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js')
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
index b6d06142e..c905856ef 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
@@ -9,24 +9,24 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
+ var child = new Con();
+ child.length = 2;
assert(Array.prototype.every.call(child, callbackfn), 'Array.prototype.every.call(child, callbackfn) !== true');
assert(accessed, 'accessed !== true');