2016-08-04 10:25:03 +00:00
|
|
|
// Copyright 2016 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.
|
|
|
|
|
2017-06-22 13:46:04 +00:00
|
|
|
// Flags: --expose-gc --always-opt
|
2016-08-04 10:25:03 +00:00
|
|
|
|
|
|
|
function f() { this.x = this.x.x; }
|
|
|
|
gc();
|
|
|
|
f.prototype.x = { x:1 }
|
|
|
|
new f();
|
|
|
|
new f();
|
|
|
|
|
|
|
|
function g() {
|
|
|
|
function h() {};
|
|
|
|
h.prototype = { set x(value) { } };
|
|
|
|
new f();
|
|
|
|
}
|
|
|
|
g();
|