function test() { | |
// Function.prototype.bind -> Get -> [[Get]] | |
var get = []; | |
var p = new Proxy(Function(), { get: function(o, k) { get.push(k); return o[k]; }}); | |
Function.prototype.bind.call(p); | |
return get + '' === "length,name"; | |
} | |
if (!test()) | |
throw new Error("Test failed"); | |