Chromium Code Reviews| Index: test/mjsunit/primitive-keyed-access.js |
| diff --git a/test/mjsunit/primitive-keyed-access.js b/test/mjsunit/primitive-keyed-access.js |
| index 16bb6a07cad53fcf8ca835685f5b5f0a93fe1902..c83975a8d30d560655cea66fe2384f32e46977e6 100644 |
| --- a/test/mjsunit/primitive-keyed-access.js |
| +++ b/test/mjsunit/primitive-keyed-access.js |
| @@ -41,3 +41,9 @@ assertThrows(function() { |
| var sym = Symbol('66'); |
| sym[62] = 0; |
| }); |
| + |
| +assertThrows(function() { |
| + "use strict"; |
| + var o = "bla"; |
| + o["0"] = 1; |
| +}); |