WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
154745
Add Proxy tests for exceptions that depend on an object being non-extensible and having configurable properties
https://bugs.webkit.org/show_bug.cgi?id=154745
Summary
Add Proxy tests for exceptions that depend on an object being non-extensible ...
Saam Barati
Reported
2016-02-26 13:28:23 PST
I missed writing some of these tests because I didn't realize you could easily make an object get into this state. But it's super easy. Object.preventExtensions puts an object into this state.
Attachments
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2016-03-03 21:20:56 PST
This is referenced from this commit:
http://trac.webkit.org/changeset/197539
. That suggests that maybe that commit should have referenced a different bug?
Saam Barati
Comment 2
2016-03-03 23:15:50 PST
(In reply to
comment #1
)
> This is referenced from this commit:
http://trac.webkit.org/changeset/197539
. > > That suggests that maybe that commit should have referenced a different bug?
Yeah it definitely should have. That was a mistake on my end. Is it worth going back and editing the change log?
Alexey Shvayka
Comment 3
2019-06-10 20:07:23 PDT
Test262 has complete coverage of internal methods invariants being validated by proxies, including non-extensible targets and non-configurable properties. Just a few of them:
https://test262.report/browse/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js
https://test262.report/browse/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js
https://test262.report/browse/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js
https://test262.report/browse/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js
https://test262.report/browse/built-ins/Proxy/isExtensible/return-is-different-from-target.js
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