Open rbuckton opened 9 years ago
The PR seems fine but maybe for simplicity let's just say it's still an error in scenarios where it would need to be downleveled? That way we're not ballooning the ES5 transform with something that ~no one will ever use.
We report an error for the following code, :
We also emit the following incorrect javascript:
We should instead emit:
While it is unlikely this will be very useful, this is another of the ES6 compatibility tests on the kangax compatibility table that we could consider addressing as it seems a small enough change.