Bug 173381 - Improve TypeError description to be useful
Summary: Improve TypeError description to be useful
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 174275
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-14 12:45 PDT by Jon Davis
Modified: 2018-04-18 04:16 PDT (History)
14 users (show)

See Also:


Attachments
Patch (5.61 KB, patch)
2017-06-16 11:38 PDT, GSkachkov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Davis 2017-06-14 12:45:21 PDT
Evaluate [a] = {a:1} in console. It produces the following less than helpful error:

	TypeError: undefined is not a function (near '...[a]...')

We should explore improving this error.

Source: https://twitter.com/bfred_it/status/874805874568470529
Comment 1 GSkachkov 2017-06-16 11:38:07 PDT
Created attachment 313099 [details]
Patch

WIP
Comment 2 GSkachkov 2018-04-18 04:16:46 PDT
Currently switched to WebAssembly Stream API