Lines Matching refs:from
7 assertEquals(1, Array.from.length);
25 Array.from.call(MyCollection, {length: 5});
34 Array.from([1], non_strict);
35 Array.from([1], non_strict, void 0);
36 Array.from([1], non_strict, null);
37 Array.from([1], strict);
38 Array.from([1], strict, void 0);
39 Array.from([1], strict_null, null);
42 assertArrayLikeEquals(Array.from.call(thisArg, [], undefined), [],
44 assertArrayLikeEquals(Array.from.call(thisArg, NaN), [], constructor);
45 assertArrayLikeEquals(Array.from.call(thisArg, Infinity), [], constructor);
46 assertArrayLikeEquals(Array.from.call(thisArg, 10000000), [], constructor);
47 assertArrayLikeEquals(Array.from.call(thisArg, 'test'), ['t', 'e', 's', 't'],
50 assertArrayLikeEquals(Array.from.call(thisArg,
53 assertArrayLikeEquals(Array.from.call(thisArg,
56 assertArrayLikeEquals(Array.from.call(thisArg,
60 assertArrayLikeEquals(Array.from.call(thisArg, kSet), ['foo', 'bar', 'baz'],
64 assertArrayLikeEquals(Array.from.call(thisArg, kMap),
74 assertArrayLikeEquals(Array.from.call(thisArg, generator()),
80 assertArrayLikeEquals(Array.from.call(thisArg, gclef), [gclef], constructor);
81 assertArrayLikeEquals(Array.from.call(thisArg, gclef + " G"),
84 assertArrayLikeEquals(Array.from.call(thisArg, 'test', function(x) {
89 assertArrayLikeEquals(Array.from.call(thisArg, 'test', function(x) {
93 assertThrows(function() { Array.from.call(thisArg, null); }, TypeError);
94 assertThrows(function() { Array.from.call(thisArg, undefined); }, TypeError);
95 assertThrows(function() { Array.from.call(thisArg, [], null); }, TypeError);
96 assertThrows(function() { Array.from.call(thisArg, [], "noncallable"); },
101 assertArrayLikeEquals(Array.from.call(thisArg, nullIterator), [],
106 assertThrows(function() { Array.from.call(thisArg, nonObjIterator); },
109 assertThrows(function() { Array.from.call(thisArg, [], null); }, TypeError);
134 assertArrayLikeEquals(Array.from.call(thisArg, obj), [1, 2, 3], constructor);
160 assertThrows(function () { Array.from.call(exotic, [1]); }, TypeError);
166 var x = Array.from.call(ordinary, [2]);