RESOLVED FIXED 197324
JSWrapperMap should check if existing prototype properties are wrappers when copying exported methods.
https://bugs.webkit.org/show_bug.cgi?id=197324
Summary JSWrapperMap should check if existing prototype properties are wrappers when ...
Keith Miller
Reported 2019-04-26 14:06:24 PDT
JSWrapperMap should only look for own properties on prototypes.
Attachments
Patch (6.20 KB, patch)
2019-04-30 08:33 PDT, Keith Miller
no flags
Patch (6.24 KB, patch)
2019-04-30 08:44 PDT, Keith Miller
no flags
Archive of layout-test-results from ews117 for mac-highsierra (3.15 MB, application/zip)
2019-04-30 10:34 PDT, EWS Watchlist
no flags
Patch for landing (5.95 KB, patch)
2019-05-06 17:44 PDT, Keith Miller
no flags
Keith Miller
Comment 1 2019-04-30 08:33:12 PDT
Keith Miller
Comment 2 2019-04-30 08:44:18 PDT
EWS Watchlist
Comment 3 2019-04-30 10:34:54 PDT
Comment on attachment 368569 [details] Patch Attachment 368569 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/12041744 New failing tests: webaudio/oscillator-ended.html
EWS Watchlist
Comment 4 2019-04-30 10:34:55 PDT
Created attachment 368577 [details] Archive of layout-test-results from ews117 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-highsierra Platform: Mac OS X 10.13.6
Saam Barati
Comment 5 2019-04-30 11:04:16 PDT
Comment on attachment 368569 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368569&action=review r=me > Source/JavaScriptCore/ChangeLog:12 > + property. Normally this would only happen if a Objective-C super a => an > Source/JavaScriptCore/ChangeLog:15 > + Object.protype the overriden method won't be exported. protype => prototype > Source/JavaScriptCore/API/JSWrapperMap.mm:274 > + bool hasProperty = jsObject->getPropertySlot(exec, JSC::Identifier::fromString(exec, String(name)), slot); what about exceptions? Maybe you wanted VMInquiry above? > Source/JavaScriptCore/API/tests/testapi.mm:2541 > +- (BOOL)other; is this needed?
Keith Miller
Comment 6 2019-05-06 17:44:42 PDT
Created attachment 369211 [details] Patch for landing
WebKit Commit Bot
Comment 7 2019-05-06 18:23:45 PDT
Comment on attachment 369211 [details] Patch for landing Clearing flags on attachment: 369211 Committed r244999: <https://trac.webkit.org/changeset/244999>
WebKit Commit Bot
Comment 8 2019-05-06 18:23:46 PDT
All reviewed patches have been landed. Closing bug.
Keith Miller
Comment 9 2019-05-06 18:24:50 PDT
Note You need to log in before you can comment on or make changes to this bug.