MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / test

Function test

tests/xs/issues/__441.js:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4---*/
5
6function test() {
7
8// CreateListFromArrayLike -> Get -> [[Get]]
9var get = [];
10var p = new Proxy({length:get - 6, 0:0, 1:0}, { get: function(o, k) { get.push(k); return o[k]; }});
11Function.prototype.apply({}, p);
12return get + '' === "length";
13
14}
15
16if (!test())
17 throw new Error("Test failed");

Callers 1

__441.jsFile · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected