Index: test/mjsunit/regress/regress-update-field-type-attributes.js |
diff --git a/test/mjsunit/regress/regress-update-field-type-attributes.js b/test/mjsunit/regress/regress-update-field-type-attributes.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c23d062067e35bb22e3d78313dcb29808694ffa6 |
--- /dev/null |
+++ b/test/mjsunit/regress/regress-update-field-type-attributes.js |
@@ -0,0 +1,12 @@ |
+// Copyright 2014 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. |
+ |
+function test(){ |
+ function InnerClass(){} |
+ var container = {field: new InnerClass()}; |
+ return Object.freeze(container); |
+}; |
+ |
+assertTrue(Object.isFrozen(test())); |
+assertTrue(Object.isFrozen(test())); |