Bug 204629

Summary: Remove own toString from NativeError prototype
Product: WebKit Reporter: me
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin, ews-watchlist, keith_miller, ljharb, mark.lam, msaboff, ross.kirsling, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews210 for win-future
none
Patch
none
Archive of layout-test-results from ews210 for win-future
none
Patch
none
Archive of layout-test-results from ews210 for win-future
none
Patch
none
Patch
none
Patch
none
patch
none
Patch none

me
Reported 2019-11-26 14:42:39 PST
Remove own toString from NativeError prototype
Attachments
Patch (6.88 KB, patch)
2019-11-26 14:43 PST, me
no flags
Patch (6.86 KB, patch)
2019-11-26 15:04 PST, me
no flags
Archive of layout-test-results from ews210 for win-future (4.36 MB, application/zip)
2019-11-26 16:25 PST, EWS Watchlist
no flags
Patch (6.67 KB, patch)
2019-11-26 22:05 PST, me
no flags
Archive of layout-test-results from ews210 for win-future (14.94 MB, application/zip)
2019-11-27 02:18 PST, EWS Watchlist
no flags
Patch (6.89 KB, patch)
2019-11-27 08:36 PST, me
no flags
Archive of layout-test-results from ews210 for win-future (14.80 MB, application/zip)
2019-11-27 10:19 PST, EWS Watchlist
no flags
Patch (9.43 KB, patch)
2019-11-28 19:28 PST, me
no flags
Patch (129.31 KB, patch)
2019-11-29 14:04 PST, me
no flags
Patch (129.21 KB, patch)
2020-01-19 15:45 PST, me
no flags
patch (130.26 KB, patch)
2020-01-20 14:34 PST, me
no flags
Patch (130.26 KB, patch)
2020-01-20 14:40 PST, me
no flags
me
Comment 1 2019-11-26 14:43:59 PST
me
Comment 2 2019-11-26 15:04:50 PST
me
Comment 3 2019-11-26 15:33:25 PST
It seems with the current patch, Error.prototype.toString isn't being created anymore. I admittedly have no idea how any of this works, so pointers would be appreciated.
EWS Watchlist
Comment 4 2019-11-26 16:25:32 PST Comment hidden (obsolete)
EWS Watchlist
Comment 5 2019-11-26 16:25:34 PST Comment hidden (obsolete)
me
Comment 6 2019-11-26 22:05:51 PST
EWS Watchlist
Comment 7 2019-11-27 02:18:49 PST Comment hidden (obsolete)
EWS Watchlist
Comment 8 2019-11-27 02:18:52 PST Comment hidden (obsolete)
me
Comment 9 2019-11-27 08:36:33 PST
EWS Watchlist
Comment 10 2019-11-27 10:19:43 PST Comment hidden (obsolete)
EWS Watchlist
Comment 11 2019-11-27 10:19:45 PST Comment hidden (obsolete)
me
Comment 12 2019-11-28 19:28:32 PST
me
Comment 13 2019-11-29 14:04:46 PST
Ross Kirsling
Comment 14 2019-11-29 14:44:54 PST
Comment on attachment 384526 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=384526&action=review r=me, though you'll need to regenerate the ChangeLogs. > JSTests/stress/nativeerror-prototype-tostring.js:7 > + if (NativeError.prototype.hasOwnProperty('toString')) { > + throw new Error(`${NativeError.name}.prototype should not have own property 'toString'`); > + } Nit: WK style drops braces for one-line conditionals (https://webkit.org/code-style-guidelines/#braces-one-line). I guess the checker ignores JS stress tests but we ought to align anyway.
me
Comment 15 2020-01-19 15:45:26 PST
Darin Adler
Comment 16 2020-01-20 10:26:18 PST
Comment on attachment 388198 [details] Patch Code change looks pretty good. Need to fix the failing tests on EWS before we get this reviewed.
Ross Kirsling
Comment 17 2020-01-20 14:21:04 PST
Comment on attachment 388198 [details] Patch The EWS failure here is just due to auto-trimmed whitespace; just need to undo that and get the regenerated changelogs into the patch. :)
me
Comment 18 2020-01-20 14:34:29 PST
me
Comment 19 2020-01-20 14:40:40 PST
WebKit Commit Bot
Comment 20 2020-01-20 19:47:43 PST
The commit-queue encountered the following flaky tests while processing attachment 388259 [details]: editing/spelling/spellcheck-attribute.html bug 206178 (authors: g.czajkowski@samsung.com, mark.lam@apple.com, and rniwa@webkit.org) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 21 2020-01-20 19:48:24 PST
Comment on attachment 388259 [details] Patch Clearing flags on attachment: 388259 Committed r254842: <https://trac.webkit.org/changeset/254842>
WebKit Commit Bot
Comment 22 2020-01-20 19:48:26 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 23 2020-01-20 19:49:20 PST
Note You need to log in before you can comment on or make changes to this bug.