WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 203456
Bug 207310
Throw a type error upon attempts to redefine undefined and friends on the JSGlobalObject
https://bugs.webkit.org/show_bug.cgi?id=207310
Summary
Throw a type error upon attempts to redefine undefined and friends on the JSG...
Robin Morisset
Reported
2020-02-05 16:44:12 PST
According to
http://www.ecma-international.org/ecma-262/6.0/index.html#sec-undefined
, JSGlobalObject got properties such as "undefined" which are non-writable and non-configurable. So the following code should throw a type error: ``` Object.defineProperty(this, "undefined", { configurable: true, get: function() { return false; } }); ``` And it does in Chrome, but currently does not in Safari.
Attachments
Add attachment
proposed patch, testcase, etc.
Robin Morisset
Comment 1
2020-02-05 16:44:29 PST
<
rdar://problem/56658015
>
Robin Morisset
Comment 2
2020-02-05 16:45:56 PST
Oops, I did not realize that this was already in the bugzilla. *** This bug has been marked as a duplicate of
bug 203456
***
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