es3ify
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -87,2 +87,3 @@ var Syntax = require('esprima').Syntax; | ||
traverse(element, path, state); | ||
utils.catchup(element.range[1], state); | ||
} | ||
@@ -89,0 +90,0 @@ }); |
{ | ||
"name": "es3ify", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Browserify transform to convert ES5 syntax to be ES3-compatible.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,2 +19,7 @@ var transform = require('../index.js').transform; | ||
it('should not remove commas in strings in arrays', function() { | ||
expect(transform('["2, 3, 4,"]')) | ||
.toEqual('["2, 3, 4,"]'); | ||
}); | ||
it('should keep comments near a trailing comma', function() { | ||
@@ -21,0 +26,0 @@ expect(transform('[2, 3, 4 /* = 2^2 */,// = 6 - 2\n]')) |
7790
155