Source code

Revision control

Copy as Markdown

Other Tools

var get = [];
var fun = function() {}
var p = new Proxy(fun, {
get(target, key) {
get.push(key);
return target[key];
}
});
assertEq(new fun instanceof p, true);
assertDeepEq(get, [Symbol.hasInstance, "prototype"]);
reportCompare(true, true);