Index: test/mjsunit/regress/regress-crbug-168545.js |
diff --git a/test/mjsunit/regress/regress-crbug-168545.js b/test/mjsunit/regress/regress-crbug-168545.js |
index 1bc52fe9b0975b4f654c797da307c8f8ae40fef4..acc065e41101325dd9b105f73e50748b1c9cff13 100644 |
--- a/test/mjsunit/regress/regress-crbug-168545.js |
+++ b/test/mjsunit/regress/regress-crbug-168545.js |
@@ -28,3 +28,7 @@ |
var o = {}; |
Object.defineProperty(o, "length", { get: function() { throw "bail"; }}); |
assertThrows("new Int16Array(o);"); |
+ |
+var a = []; |
+Object.defineProperty(a, "0", { get: function() { throw "bail"; }}); |
+assertThrows("new Int16Array(a);"); |