RESOLVED FIXED 154376
[ES6] Come up with a test for Proxy.[[GetOwnProperty]] that tests the isExtensible error when the result of the trap is undefined
https://bugs.webkit.org/show_bug.cgi?id=154376
Summary [ES6] Come up with a test for Proxy.[[GetOwnProperty]] that tests the isExten...
Saam Barati
Reported 2016-02-17 18:58:30 PST
We want code that tests this part of the function: if (!target->isExtensible()) { // Object.seal(o) will make all fields [[Configurable]] false so I'm not sure how to test this throwVMTypeError(exec, ASCIILiteral("When 'getOwnPropertyDescriptor' returns undefined, the 'target' of a Proxy should be extensible.")); return }
Attachments
Patch (3.67 KB, patch)
2019-06-11 16:11 PDT, Alexey Shvayka
no flags
Patch (4.94 KB, patch)
2019-09-16 15:09 PDT, Alexey Shvayka
no flags
Patch (4.29 KB, patch)
2019-09-19 14:12 PDT, Alexey Shvayka
no flags
Patch (4.55 KB, patch)
2019-09-24 16:00 PDT, Alexey Shvayka
no flags
Alexey Shvayka
Comment 1 2019-06-11 16:11:41 PDT
Oliver Hunt
Comment 3 2019-06-11 17:09:25 PDT
Comment on attachment 371890 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371890&action=review > Source/JavaScriptCore/runtime/ProxyObject.cpp:-257 > - // FIXME: this doesn't work if 'target' is another Proxy. We don't have isExtensible implemented in a way that fits w/ Proxys. > - // https://bugs.webkit.org/show_bug.cgi?id=154375 Why is this being removed? The FIXME is referencing an open bug that is not being addressed in this patch.
Alexey Shvayka
Comment 4 2019-06-11 17:48:51 PDT
(In reply to Oliver Hunt from comment #3) > Comment on attachment 371890 [details] > Patch > > Why is this being removed? The FIXME is referencing an open bug that is not > being addressed in this patch. The referenced bug is indeed not being addressed in this patch, but it is RESOLVED.
Saam Barati
Comment 5 2019-06-12 17:26:42 PDT
Comment on attachment 371890 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371890&action=review >> Source/JavaScriptCore/runtime/ProxyObject.cpp:-257 >> - // https://bugs.webkit.org/show_bug.cgi?id=154375 > > Why is this being removed? The FIXME is referencing an open bug that is not being addressed in this patch. Can we add a test for this too?
Saam Barati
Comment 6 2019-06-12 17:29:53 PDT
(In reply to Saam Barati from comment #5) > Comment on attachment 371890 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=371890&action=review > > >> Source/JavaScriptCore/runtime/ProxyObject.cpp:-257 > >> - // https://bugs.webkit.org/show_bug.cgi?id=154375 > > > > Why is this being removed? The FIXME is referencing an open bug that is not being addressed in this patch. > > Can we add a test for this too? Or do you know when this was fixed? It was marked as config changed, but I'm not sure when it was actually fixed.
Alexey Shvayka
Comment 7 2019-09-16 15:09:22 PDT
Created attachment 378900 [details] Patch Add Proxy.[[IsExtensible]] test.
Alexey Shvayka
Comment 8 2019-09-16 15:10:55 PDT
(In reply to Saam Barati from comment #6) > > Can we add a test for this too? > > Or do you know when this was fixed? It was marked as config changed, but I'm > not sure when it was actually fixed. This was fixed in https://trac.webkit.org/changeset/197420. I've added a test too.
Alexey Shvayka
Comment 9 2019-09-19 14:12:47 PDT
Created attachment 379162 [details] Patch Remove duplicated test case.
Ross Kirsling
Comment 10 2019-09-23 15:58:16 PDT
Comment on attachment 379162 [details] Patch r=me, but let's update the Changelog to describe the other test as well.
Alexey Shvayka
Comment 11 2019-09-24 16:00:02 PDT
Created attachment 379509 [details] Patch Set reviewer and update ChangeLog.
WebKit Commit Bot
Comment 12 2019-09-24 16:53:32 PDT
Comment on attachment 379509 [details] Patch Clearing flags on attachment: 379509 Committed r250323: <https://trac.webkit.org/changeset/250323>
WebKit Commit Bot
Comment 13 2019-09-24 16:53:34 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14 2019-09-24 17:01:23 PDT
Note You need to log in before you can comment on or make changes to this bug.