blob: d2892c924f683d5d4de999fb9cb4e60d6e7c58ee [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 --verify-heap
6
7function f() {}
8f = f.bind();
9f.x = f.name;
10f.__defineGetter__('name', function() { return f.x; });
11function g() {}
12g.prototype = f;
13gc();