[webkit-reviews] review granted: [Bug 236541] `Array#{ groupBy, groupByToMap }` should throw a `TypeError` when `this` is `null` or `undefined` : [Attachment 451916] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 14 09:45:08 PST 2022


Alexey Shvayka <ashvayka at apple.com> has granted Yusuke Suzuki
<ysuzuki at apple.com>'s request for review:
Bug 236541: `Array#{ groupBy, groupByToMap }` should throw a `TypeError` when
`this` is `null` or `undefined`
https://bugs.webkit.org/show_bug.cgi?id=236541

Attachment 451916: Patch

https://bugs.webkit.org/attachment.cgi?id=451916&action=review




--- Comment #3 from Alexey Shvayka <ashvayka at apple.com> ---
Comment on attachment 451916
  --> https://bugs.webkit.org/attachment.cgi?id=451916
Patch

I wish we could mandate "use strict" for built-ins with exception of
Reflect.has, which we need to be sloppy mode JS built-in for inlining +
caching.


More information about the webkit-reviews mailing list