blob: 71dd3d5b00e43befb837949d21e310b892835c95 [file] [log] [blame]
function test() {
// RegExp.prototype.test -> RegExpExec -> Get -> [[Get]]
var get = [];
var p = new Proxy({ exec: function() { return null; } }, { get: function(o, k) { get.push(k); return o[k]; }});
RegExp.prototype.test.call(p);
return get + '' === "exec";
}
if (!test())
throw new Error("Test failed");