/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
- x = 30;
- function foo() {
- assertEq(x, 30);
- delete x;
- y = 20;
- Object.defineProperty(this, 'x', {value:10});
- assertEq(x, 10);
- }
- foo();