Index: test/mjsunit/regress/regress-crbug-633585.js |
diff --git a/test/mjsunit/regress/regress-crbug-633585.js b/test/mjsunit/regress/regress-crbug-633585.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c483e47bbc883bdc02609c8bdd6597843cc05da5 |
--- /dev/null |
+++ b/test/mjsunit/regress/regress-crbug-633585.js |
@@ -0,0 +1,18 @@ |
+// 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. |
+ |
+// Flags: --expose-gc --turbo --always-opt |
+ |
+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(); |