Bug 148633 - Destructuring assignment: unintelligible error message
Summary: Destructuring assignment: unintelligible error message
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-31 09:25 PDT by Claude Pache
Modified: 2015-08-31 23:14 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claude Pache 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?
Comment 1 Yusuke Suzuki 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`).