Skip to content

v0.9.2

Compare
Choose a tag to compare
@adams85 adams85 released this 31 Mar 02:38
· 45 commits to master since this release

Improvements:

  • Introduce ParserOptions.ExperimentalESFeatures to allow fine-tuning which experimental feature to enable.
  • Re-add BindingPattern to the AST under the name DestructuringPattern.
  • Prevent Literal.Value from re-boxing the return value on every call by caching it when necessary (i.e. in the case of NumericLiteral, BigIntLiteral).
  • Allow accessing Node.Range and Node.Location as readonly references (see Node.RangeRef and Node.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 to IHoistingScope.
  • Rename IDestructuringPattern to IDestructuringElement.