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