Transforms obj.finally into obj['finally'] so it's safe in IE < 9
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
test
.gitignore
README.md
es-safe-ie.js
package.json

README.md

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"]();