| Summary: | Array.prototype.sort should throw TypeError if param is a not callable object | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | isol2 | ||||
| Component: | JavaScriptCore | Assignee: | Keith Miller <keith_miller> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, darin, ews-watchlist, fpizlo, joepeck, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer, ysuzuki | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 11 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
isol2
2018-08-07 11:50:19 PDT
OS: Ubuntu 16.04 x64 jsc version: 234654 cinfuzz Created attachment 346811 [details]
Patch
Comment on attachment 346811 [details] Patch Clearing flags on attachment: 346811 Committed r234716: <https://trac.webkit.org/changeset/234716> All reviewed patches have been landed. Closing bug. Comment on attachment 346811 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=346811&action=review > Source/JavaScriptCore/builtins/ArrayPrototype.js:602 > + @throwTypeError("Array.prototype.sort requires the comparsion function be a function or undefined"); Might also want to fix the typo here: both before and after this patch it says "comparsion" rather than "comparison". |