[Webkit-unassigned] [Bug 199292] JSON.parse incorrectly handles array proxies

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 5 15:29:36 PDT 2019


--- Comment #4 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to Yusuke Suzuki from comment #2)
> Comment on attachment 373059 [details]
> Patch
> 1. When `isArray` is used, we need to do error-handling correctly.
> 2. Since this error is observable (like, throwing an error before/after the
> other operations, which can be observable to users), when calling `isArray`
> becomes important.
> Is this `isArray()` call specified in the spec?

Nice catch, thanks. I've replaced ASSERTs with comments and added error-handling for isArray call in StateUnknown (that one is per spec).

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190705/8a9c56f8/attachment.html>

More information about the webkit-unassigned mailing list