shapesecurity / shift-parser-js

ECMAScript parser that produces a Shift format AST
http://shift-ast.org/parser.html
Apache License 2.0
249 stars 28 forks source link

ES5 compatibility #344

Closed drom closed 7 years ago

drom commented 7 years ago

Looks like with the recent updates: v5.0.3 https://github.com/shapesecurity/shift-parser-js/commit/912b07552f4f457418e478b1ef96cfff45f34a6d new Set() was introduced and went through the Babel into dist code. This change brakes ES5 compatibility.

michaelficarra commented 7 years ago

@drom Published 5.0.4.

drom commented 7 years ago

@michaelficarra you can use Babel polyfill fo set.

require('core-js/fn/set');
michaelficarra commented 7 years ago

@drom That's okay, we didn't really need to use Set. We will use it (without the polyfill) in the next major version.