Handling reserved words
What are your thoughts on handling reserved words when transforming with buble, given the following
class Future {
constructor (x) {
}
catch () {
}
}
transforms into
var Future = function Future (x) {
};
Future.prototype.catch = function catch () {
};
The issue is the function name catch above is not allowed so errors get thrown if the same is done in babel it transforms the function name to _catch
Currently my solution is to simply use bracket notation ['catch'] when writing classes with reserved key words then the function name is not present but ideally it would be nice to have function names instead of anonymous ones.
Any thoughts on supporting that?