summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-3-16.js')
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-16.js19
1 files changed, 12 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
index 86173aca7..057f06876 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
@@ -7,15 +7,20 @@ es5id: 15.4.4.17-3-16
description: Array.prototype.some - 'length' is a string containing a hex 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: "0x0002" };
+var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: "0x0002"
+};
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');