Crate swc_ecma_compat_bugfixes

source ·

Functions§

  • Safari 10.3 had an issue where async arrow function expressions within any class method would throw. After an initial fix, any references to the instance via this within those methods would also throw. This is fixed by converting arrow functions in class methods into equivalent function expressions. See https://bugs.webkit.org/show_bug.cgi?id=166879
  • Converts destructured parameters with default values to non-shorthand syntax. This fixes the only arguments-related bug in ES Modules-supporting browsers (Edge 16 & 17). Use this plugin instead of @babel/plugin-transform-parameters when targeting ES Modules.