WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
189316
The error message for reassignment to const variables should say “variable” not “property"
https://bugs.webkit.org/show_bug.cgi?id=189316
Summary
The error message for reassignment to const variables should say “variable” n...
Thomas Denney
Reported
2018-09-05 13:35:45 PDT
In the following JS: "use strict"; class Example { get thing() { return 0; } } const example = new Example(); example.thing = 1; // TypeError: Attempted to assign to readonly property. example = new Example(); // TypeError: Attempted to assign to readonly property. The same error message appears for both assignments, however the latter should read “TypeError: Attempted to assign to readonly variable.” rather than property.
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