Chromium Code Reviews| Index: test/mjsunit/harmony/classes.js |
| diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js |
| index b74b2886a551c7e566da14ae0ab48bd5e89de68b..9c090413450ca203116da1d13dbbc5f03d980374 100644 |
| --- a/test/mjsunit/harmony/classes.js |
| +++ b/test/mjsunit/harmony/classes.js |
| @@ -71,6 +71,11 @@ |
| class C extends Math.abs {} |
| }, TypeError); |
| delete Math.abs.prototype; |
| + |
| + assertThrows(function() { |
| + function* g() {} |
| + class C extends g {} |
| + }, TypeError); |
| })(); |