diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js index 9a7404b58..09a5dbb37 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-12 description: Array.prototype.filter applied to RegExp object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof RegExp; - } +function callbackfn(val, idx, obj) { + return obj instanceof RegExp; +} - var obj = new RegExp(); - obj.length = 2; - obj[1] = true; +var obj = new RegExp(); +obj.length = 2; +obj[1] = true; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], true, 'newArr[0]'); |