From 7f05eed8cf28acdb5adb719e036bcf3195c34a8d Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:36:57 +0000 Subject: [PATCH] docs(transformer): add comment about missing features in arrow function transform (#5855) --- crates/oxc_transformer/src/es2015/arrow_functions.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/oxc_transformer/src/es2015/arrow_functions.rs b/crates/oxc_transformer/src/es2015/arrow_functions.rs index 1843c045ecdbf..89ee8f5ddfa85 100644 --- a/crates/oxc_transformer/src/es2015/arrow_functions.rs +++ b/crates/oxc_transformer/src/es2015/arrow_functions.rs @@ -4,6 +4,17 @@ //! //! > This plugin is included in `preset-env`, in ES2015 //! +//! ## Missing features +//! +//! Implementation is incomplete at present. Still TODO: +//! +//! * Handle `arguments` in arrow functions. +//! * Handle `new.target` in arrow functions. +//! * Error on arrow functions in class properties. +//! +//! * Error on `super` in arrow functions. +//! +//! //! ## Example //! //! Input: