summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js')
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js26
1 files changed, 12 insertions, 14 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
index 859dc4022..7d45a5523 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
@@ -10,21 +10,19 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.prototype[1] = 10;
+ Object.prototype[1] = 10;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');