Eric Foster 35b96bc934 initial commit | 6 年前 | |
---|---|---|
.. | ||
spec | 6 年前 | |
.npmignore | 6 年前 | |
.travis.yml | 6 年前 | |
LICENSE | 6 年前 | |
README.md | 6 年前 | |
index.js | 6 年前 | |
package.json | 6 年前 |
Browserify transform to convert quote reserved words in property keys for compatibility with ES3 JavaScript engines like IE8. In addition, trailing commas in array and object literals are removed.
// In
var x = {class: 2,};
x.class = [3, 4,];
// Out:
var x = {"class": 2};
x["class"] = [3, 4];
Run tests with:
npm install -g jasmine-node
jasmine-node spec