Chromium Code Reviews| Index: test/mjsunit/strict-mode.js |
| =================================================================== |
| --- test/mjsunit/strict-mode.js (revision 7276) |
| +++ test/mjsunit/strict-mode.js (working copy) |
| @@ -983,7 +983,8 @@ |
| function CheckPill(pill) { |
| assertEquals("function", typeof pill); |
| assertInstanceof(pill, Function); |
| - assertThrows(function() { pill.property = "value"; }, TypeError); |
| + pill.property = "value"; |
| + assertEquals(pill.value, undefined); |
|
Martin Maly
2011/03/21 20:38:35
This is alright. We could also have:
assertThrows
|
| assertThrows(pill, TypeError); |
| assertEquals(pill.prototype, (function(){}).prototype); |
| var d = Object.getOwnPropertyDescriptor(pill, "prototype"); |