es-safe-ie

Transforms unsafe code to safe code for <IE9

es-safe-ie

AST transformations to make JS safe for IE 8 and lower.

For example from:

foo.finally();

to:

foo['finally']();
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"]();