[Webkit-unassigned] [Bug 157317] New: Improve Symbol() to string coercion error message

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 3 12:10:39 PDT 2016


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

            Bug ID: 157317
           Summary: Improve Symbol() to string coercion error message
    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, sbarati at apple.com,
                    utatane.tea at gmail.com

* SUMMARY
Improve Symbol() to string error message.

I'm not sure I agree with he "can't convert to a string" when Symbol().toString() at least provides a string. But still, our error message is super cryptic and needs to be improved.

* Safari
js> "" + Symbol()
TypeError: Type error

* Chrome
js> "" + Symbol()
TypeError: Cannot convert a Symbol value to a string

* Firefox
js> "" + Symbol()
TypeError: can't convert symbol to string

* Edge
js> "" + Symbol()
Object doesn't support property or method 'ToString'

-- 
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/20160503/3b57ddf8/attachment.html>


More information about the webkit-unassigned mailing list