``` function f([] = x){} f(1) VM30:1 Uncaught TypeError: undefined is not a function ``` Look, you're not wrong. However, I think your message should probably say something like "Cannot destructure a number into an array". (`f([])` is fine, just like strings).
Which Chrome version are you seeing this in? @_gsathya recently improved this specific error message.
-
-
Version 62.0.3202.94 (Official Build) (64-bit) linux
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Canary. Just updated from 65.0.3308.0 to 65.0.3309.0, it's still there. As I said, works nice in `let [] = ...` but not in function params.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.