Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / basic / testBug607659.js
1 var g = 0;
2 Object.defineProperty(RegExp.prototype, 'test', { get:function() { ++g } });
3 function f() {
4     for (var i = 0; i < 100; ++i)
5         /a/.exec('a');
6 }
7 f();
8 assertEq(g, 0);