[Webkit-unassigned] [Bug 159309] New: Wrong error message in TypeError produced by for..of with null object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 30 12:41:05 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=159309

            Bug ID: 159309
           Summary: Wrong error message in TypeError produced by for..of
                    with null object
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: keith_miller at apple.com, mark.lam at apple.com,
                    msaboff at apple.com, sbarati at apple.com

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()')

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160630/479040d3/attachment-0001.html>


More information about the webkit-unassigned mailing list