3e9797f742
Bug: chromium:736758 Change-Id: If49fda42618c27be1472a98399e440ad26b7f199 Reviewed-on: https://chromium-review.googlesource.com/548401 Commit-Queue: Georg Neis <neis@chromium.org> Reviewed-by: Daniel Clifford <danno@chromium.org> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#46241}
16 lines
355 B
JavaScript
16 lines
355 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
var Debug = debug.Debug;
|
|
|
|
function listener() {}
|
|
function f() { [1,2,3].forEach(g) }
|
|
function g() { debugger }
|
|
|
|
f();
|
|
f();
|
|
Debug.setListener(listener);
|
|
%OptimizeFunctionOnNextCall(f)
|
|
f();
|