OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 // Flags: --enable-inspector --allow-natives-syntax | |
jgruber
2017/06/28 09:10:11
This test should go into test/debugger/regress/ to
| |
6 | |
7 const Debug = debug.Debug; | |
8 Debug.setListener(() => {}); | |
9 | |
10 var a = [0,1,2,3,4,5,6,7,8,9]; | |
11 | |
12 var f = function() { | |
13 a.forEach(function(v) { | |
14 try { | |
15 throw new Error(); | |
16 } catch (e) { | |
17 } | |
18 }); | |
19 } | |
20 | |
21 f(); | |
22 f(); | |
23 %OptimizeFunctionOnNextCall(f); | |
24 f(); | |
25 f(); | |
OLD | NEW |