Chromium Code Reviews| Index: test/mjsunit/harmony/classes.js |
| diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js |
| index ec53b4cc38d5eff544e92cbc2a6ad6b713be844b..2051a99a60e3c531e18cf7e7944b7a469113ef49 100644 |
| --- a/test/mjsunit/harmony/classes.js |
| +++ b/test/mjsunit/harmony/classes.js |
| @@ -245,6 +245,23 @@ |
| })(); |
| +(function TestSideEffectsInPropertyDefine() { |
| + function B() {} |
| + B.prototype = { |
| + constructor: B, |
| + set m(v) { |
| + throw Error(); |
| + } |
| + }; |
| + |
| + class C extends B { |
| + m() { return 1; } |
| + } |
| + |
| + assertEquals(1, new C().m()); |
| +})(); |
| + |
| + |
| (function TestAccessors() { |
| class C { |
| // constructor(x) { |