Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Transforms obj.finally into obj['finally'] so it's safe in IE < 9
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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"]();
Something went wrong with that request. Please try again.