1 2 3 4 5 6 7 8 9 10
x = 30; function foo() { assertEq(x, 30); delete x; y = 20; Object.defineProperty(this, 'x', {value:10}); assertEq(x, 10); } foo();