0.0.3 • Published 11 years ago
es-safe-ie v0.0.3
es-safe-ie
AST transformations to make JS safe for IE 8 and lower.
For example from:
foo.finally();
to:
foo['finally']();
Usage
var transform = require('es-safe-ie');
transform(ast);
or on the command line:
$ cat script.js
foo.finally();
$ esparse script.js | es-safe-ie | uglify --spidermonkey
foo["finally"]();