Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 1 | // Copyright 2015 the V8 project authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | // Crashes without the fix for bug 503565. | ||||
6 | function f() {} | ||||
7 | function g() {} | ||||
8 | function h() { | ||||
9 | g() | ||||
10 | } | ||||
11 | (function() { | ||||
12 | eval("\ | ||||
13 | \"use strict\";\ | ||||
14 | g = (function(x) {\ | ||||
15 | +Math.log(+Math.log((+(+x>0)), f(Math.log())))\ | ||||
16 | })\ | ||||
17 | ") | ||||
18 | })() | ||||
19 | for (var j = 0; j < 999; j++) { | ||||
20 | h() | ||||
21 | } |