WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
159309
Wrong error message in TypeError produced by for..of with null object
https://bugs.webkit.org/show_bug.cgi?id=159309
Summary
Wrong error message in TypeError produced by for..of with null object
Joseph Pecoraro
Reported
2016-06-30 12:41:05 PDT
Summary: Wrong error message in TypeError produced by for..of with null object Test: <script> function foo() { let chain = Promise.resolve(); for (let x of null) console.log(x); } foo(); </script> Steps to Reproduce: 1. Load test case without the inspector open 2. Open the inspector to view the uncaught exception => Wrong message, but points to the correct location [Error] TypeError: null is not an object (evaluating 'Promise.resolve()')
Attachments
Add attachment
proposed patch, testcase, etc.
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