From e52ff0ee1e947f88ede0deecfbeadba8e4cfd88b Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sat, 21 Sep 2024 10:48:59 +0100 Subject: [PATCH] docs(transformer): arrow function transform: comment about incomplete implementation --- crates/oxc_transformer/src/es2015/arrow_functions.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/oxc_transformer/src/es2015/arrow_functions.rs b/crates/oxc_transformer/src/es2015/arrow_functions.rs index 5138811863775a..010723e29a486e 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.