summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-2-7.js')
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-7.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
index 223196674..0a3e4b4e6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
@@ -9,26 +9,26 @@ description: >
Array-like object
---*/
- 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 = { };
+var obj = {};
- Object.defineProperty(obj, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+Object.defineProperty(obj, "length", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- obj[0] = 9;
- obj[1] = 11;
- obj[2] = 12;
+obj[0] = 9;
+obj[1] = 11;
+obj[2] = 12;
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)');