blob: a53014c0340386233b1eaa557ebb7bca8752962b [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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// Flags: --expose-gc
6
7function f() {
8 return function g() {
9 return function h() {}
10 }
11}
12
13var h = f()();
14
15// Make sure code has been flushed.
16for (var i of Array(10)) gc();
17
18f()();