blob: 2c8a19cbac3a1b7220575f45a74904747cbe2ce9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.filter
description: Array.prototype.filter - returns an array whose length is 0
---*/
var newArr = [11].filter(function() {});
assert.sameValue(newArr.length, 0, 'newArr.length');
reportCompare(0, 0);
|