blob: 8b50b48ebf7761e0170531e76eccb3a4ee26e9de [file] [log] [blame]
function assert(b) {
if (!b)
throw new Error;
}
var builtin = $vm.createBuiltin(`(function (a) {
if (@isProxyObject(a))
return typeof a;
})`);
noInline(builtin);
let p = new Proxy(function(){}, {});
for (let i = 0; i < 10000; ++i)
assert(builtin(p) === "function");