Source code

Revision control

Copy as Markdown

Other Tools

const obj = {
get prop() {
Object.defineProperty(this, "prop", { enumerable: true, value: 0});
return false;
},
};
obj[Symbol.unscopables] = obj;
with (obj) {
assertEq(prop, 0);
}