diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
commit | e5564a3f29e0a818832a97c7c3b28d7c8b3b0460 (patch) | |
tree | 4b48a6577080d5e44da4d2cbebb7fe7951660de8 /deps/v8/test/mjsunit/const-eval-init.js | |
parent | 0df2f74d364826053641395b01c2fcb1345057a9 (diff) | |
download | node-e5564a3f29e0a818832a97c7c3b28d7c8b3b0460.tar.gz |
Upgrade V8 to 3.4.10
Diffstat (limited to 'deps/v8/test/mjsunit/const-eval-init.js')
-rw-r--r-- | deps/v8/test/mjsunit/const-eval-init.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/const-eval-init.js b/deps/v8/test/mjsunit/const-eval-init.js index 3f380d9d9..d3503845d 100644 --- a/deps/v8/test/mjsunit/const-eval-init.js +++ b/deps/v8/test/mjsunit/const-eval-init.js @@ -25,6 +25,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Flags: --allow-natives-syntax + // Test the handling of initialization of deleted const variables. // This only makes sense in local scopes since the declaration and // initialization of consts in the global scope happen at the same @@ -67,9 +69,11 @@ function testAssignmentArgument(x) { assertEquals(7, x); } -for (var i = 0; i < 10000; i++) { +for (var i = 0; i < 5; i++) { testAssignmentArgument(); } +%OptimizeFunctionOnNextCall(testAssignmentArgument); +testAssignmentArgument(); assertEquals(6, x); __defineSetter__('x', function() { throw 42; }); |