blob: e5bee9d5eadbdf284efc18d24d2fea6108e853c6 [file] [log] [blame]
function test() {
// ToPrimitive -> Get -> [[Get]]
var get = [];
var p = new Proxy({toString:Function()}, { get: function(o, k) { get.push(k); return o[k]; }});
p + 3;
return get[0] === Symbol.toPrimitive && get.slice(1) + '' === "valueOf,toString";
}
if (!test())
throw new Error("Test failed");