esprima/recast es3 safe compile step
npm install es3-safe-recastRecasts all [ECMAScript 3][1] reserved words to their safe alternatives.
Optionally removes trailing commas in object and array literals (pass { trailingComma: true } as the second argument to compile).
* grunt-es3-safe-recast
* gulp-dereserve
* broccoli-es3-safe-recast
``js
ajax('/asdf/1').catch(function(reason) {
}).finally(function() {
});
`
`js
ajax('/asdf/1')'catch' {
})'finally' {
});
`
`js`
object = {
catch: function() {},
finally: function() {},
default: function() {}
};
`js``
object = {
'catch': function() {},
'finally': function() {},
'default': function() {}
};
[1]: http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf