blob: c483e47bbc883bdc02609c8bdd6597843cc05da5 [file] [log] [blame]
Ben Murdoch61f157c2016-09-16 13:49:30 +01001// Copyright 2016 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 --turbo --always-opt
6
7function f() { this.x = this.x.x; }
8gc();
9f.prototype.x = { x:1 }
10new f();
11new f();
12
13function g() {
14 function h() {};
15 h.prototype = { set x(value) { } };
16 new f();
17}
18g();