Skip to content

Support ES5 Strict Mode, and fix logical/conditional operators

Compare
Choose a tag to compare
@matAtWork matAtWork released this 01 Feb 15:35
· 219 commits to master since this release
  • Improve compiler performance (approx 20%)
  • Fix issues related to the generation of nested FunctionDeclarations in ES5-Strict mode
  • Re-implement mapLogicalOps & mapCondOps to generate correct code for expressions like a || b && await c. Previous version produced code that wouldn't run in some circumstances
  • Allow the option {log:false} instead of a no-op function
  • Correctly place directives at the top of the Program/function when hoisting declarations.

Thanks to https://github.com/epoberezkin for the additional test cases and enhancements