/js/src/jit-test/tests/jaeger/globalOptimize-2.js

http://github.com/zpao/v8monkey · JavaScript · 10 lines · 9 code · 1 blank · 0 comment · 0 complexity · 6b1ea6264a93f940a5de584bf3ffdd6d MD5 · raw file

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