diff --git a/crates/oxc_transformer/src/es2015/arrow_functions.rs b/crates/oxc_transformer/src/es2015/arrow_functions.rs index 5138811863775..010723e29a486 100644 --- a/crates/oxc_transformer/src/es2015/arrow_functions.rs +++ b/crates/oxc_transformer/src/es2015/arrow_functions.rs @@ -10,6 +10,8 @@ //! //! * Handle `arguments` in arrow functions. //! * Handle `new.target` in arrow functions. +//! * Handle arrow function in function params (`function f(g = () => this) {}`). +//! Babel gets this wrong: //! * Error on arrow functions in class properties. //! //! * Error on `super` in arrow functions.