WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
148633
Destructuring assignment: unintelligible error message
https://bugs.webkit.org/show_bug.cgi?id=148633
Summary
Destructuring assignment: unintelligible error message
Claude Pache
Reported
2015-08-31 09:25:16 PDT
In the console: var [x] = 1 ▶ TypeError: [x] is not a function. (In '[x]', '[x]' is undefined) WAT?
Attachments
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2015-08-31 23:14:52 PDT
Yes, this is my fault. It occurs when looking up the @@iterator from the non object value (`1`).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug