summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-3-21.js')
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-21.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
index cc8359790..7f57fb9f2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
@@ -11,30 +11,30 @@ description: >
---*/
function callbackfn1(val, idx, obj) {
- return val > 10;
+ return val > 10;
}
function callbackfn2(val, idx, obj) {
- return val > 11;
+ return val > 11;
}
var toStringAccessed = false;
var valueOfAccessed = false;
var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- },
- toString: function () {
- toStringAccessed = true;
- return '2';
- }
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function() {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function() {
+ toStringAccessed = true;
+ return '2';
}
+ }
};
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');