summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/globalOptimize-2.js
blob: 2756ec5a36e403616065ad3472b7929354c680a3 (plain)
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();