[Webkit-unassigned] [Bug 177588] New: Poor Error Message: "Attempted to assign to readonly property" in strict mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 27 20:55:09 PDT 2017


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

            Bug ID: 177588
           Summary: Poor Error Message: "Attempted to assign to readonly
                    property" in strict mode
           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: fpizlo at apple.com, sbarati at apple.com,
                    webkit-bug-importer at group.apple.com

Poor Error Message: "Attempted to assign to readonly property" in strict mode

Test
<script>"use strict"; var str = "x"; str["foo"] = 100;</script>

JavaScriptCore:
TypeError: Attempted to assign to readonly property.

Chrome:
TypeError: Cannot create property 'foo' on string 'x'

Firefox:
TypeError: can't assign to properties of (new String("x")): not an object

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


More information about the webkit-unassigned mailing list