blob: 69cd8d9700e080245064f77deaa10b484bd94c1e [file] [log] [blame]
function test() {
var proxied = { };
var passed = false;
var proxy = Object.create(new Proxy(proxied, {
set: function (t, k, v, r) {
passed = t === proxied && k + v === "foobar" && r === proxy;
}
}));
proxy.foo = "bar";
return passed;
}
if (!test())
throw new Error("Test failed");