WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
128204
Functions cannot freeze themselves.
https://bugs.webkit.org/show_bug.cgi?id=128204
Summary
Functions cannot freeze themselves.
bsw
Reported
2014-02-04 12:51:53 PST
If a function calls Object.freeze on itself, the call errors with "[Error] TypeError: Attempting to change value of a readonly property." Example: function freezeIt(obj) { Object.freeze(obj); } freezeIt(freezeIt); This is inconsistent both with the ECMA specification and with the behavior in Chrome/V8.
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