summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-3-12.js')
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-12.js19
1 files changed, 12 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
index 5308096de..ac407faa9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
@@ -9,15 +9,20 @@ description: >
number
---*/
- function callbackfn1(val, idx, obj) {
- return val > 10;
- }
+function callbackfn1(val, idx, obj) {
+ return val > 10;
+}
- function callbackfn2(val, idx, obj) {
- return val > 11;
- }
+function callbackfn2(val, idx, obj) {
+ return val > 11;
+}
- var obj = { 0: 9, 1: 11, 2: 12, length: "-4294967294" };
+var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: "-4294967294"
+};
assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');