Index: test/mjsunit/array-length.js |
diff --git a/test/mjsunit/array-length.js b/test/mjsunit/array-length.js |
index 16867db733b6c98bb45b9428b86755d6c1e58e5d..04b1750a4a46023b15026000ff41caabac92125a 100644 |
--- a/test/mjsunit/array-length.js |
+++ b/test/mjsunit/array-length.js |
@@ -119,3 +119,9 @@ for (var i = 0; i < 7; i++) { |
t = a.length = 7; |
assertEquals(7, t); |
} |
+ |
+(function () { |
+ "use strict"; |
+ var frozen_object = Object.freeze({__proto__:[]}); |
+ assertThrows(function () { frozen_object.length = 10 }); |
+})(); |