@mathias What do you think of having `function.argumentNames` available in `function` scope? Similar to meta properties proposed here: https://github.com/allenwb/ESideas/blob/master/ES7MetaProps.md … It's a common use-case for debugging and argument assertion.
Also if you add it as a property to all functions then minifiers mangling function params would be unsafe because it would change runtime semantics.
-
-
This is what I would like: ```js function foo() { // Only available inside the function console.log(foo.argumentNames); //=> ['unicorn'] } const unicorn = true; foo(unicorn); console.log(foo.argumentNames); //=> undefined ```
-
With that then any variables passed to a function call are unsafe to mangle
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 