v0.9.2
Improvements:
- Introduce
ParserOptions.ExperimentalESFeatures
to allow fine-tuning which experimental feature to enable. - Re-add
BindingPattern
to the AST under the nameDestructuringPattern
. - Prevent
Literal.Value
from re-boxing the return value on every call by caching it when necessary (i.e. in the case ofNumericLiteral
,BigIntLiteral
). - Allow accessing
Node.Range
andNode.Location
as readonly references (seeNode.RangeRef
andNode.LocationRef
, respectively). - Provide an error code in
ParseError
(as it's not reliable to check error messages because those are localizable).
Breaking changes:
- Remove
EcmaVersion.Experimental
. - Rename
IVarScope
toIHoistingScope
. - Rename
IDestructuringPattern
toIDestructuringElement
.