[Webkit-unassigned] [Bug 218686] New: Web Inspector: ensure that `JSON::ArrayOf<T>` doesn't allow `addItem` to be called with a type other than `T`
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Nov 7 11:16:04 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=218686
Bug ID: 218686
Summary: Web Inspector: ensure that `JSON::ArrayOf<T>` doesn't
allow `addItem` to be called with a type other than
`T`
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: drousso at apple.com
CC: inspector-bugzilla-changes at group.apple.com
Right now, `JSON::ArrayOf<T>` always has `addItem` overloads for `int`, `double`, `String`, and `Ref<T>` (even when `T` is not a `JSON::Value`). This means that I could have a `JSON::ArrayOf<int>` and call `addItem(42.0)` or `addItem("foo"_s)` and it would work. We should prevent that.
--
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/20201107/31a8e1cd/attachment.htm>
More information about the webkit-unassigned
mailing list