blob: c2ae3cb4f2edfe42972b927c4ce98c44a0a6b1b7 [file] [log] [blame]
function test() {
// RegExp.prototype[Symbol.match] -> 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.match].call(p);
p.global = true;
RegExp.prototype[Symbol.match].call(p);
return get + '' === "global,exec,global,unicode,exec";
}
if (!test())
throw new Error("Test failed");