blob: 568fcfa1051024c666c411e5f6ed8203ef080a3f [file] [log] [blame]
function test() {
var proxied = {};
var passed = false;
Object.defineProperty(
new Proxy(proxied, {
defineProperty: function (t, k, d) {
passed = t === proxied && k === "foo" && d.value === 5;
return true;
}
}),
"foo",
{ value: 5, configurable: true }
);
return passed;
}
if (!test())
throw new Error("Test failed");