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.
Created attachment 413529 [details] Patch
Created attachment 413563 [details] Patch
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`)
Comment on attachment 413563 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=413563&action=review r=me > Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py:142 > + static NeverDestroyed<DispatchMap> dispatchMap = DispatchMap({ 🤯 > Source/JavaScriptCore/inspector/scripts/tests/expected/domains-with-varying-command-sizes.json-result:342 > + static NeverDestroyed<DispatchMap> dispatchMap = DispatchMap({ Ugh, you are the best, Devin! This is so much nicer.
Committed r269757: <https://trac.webkit.org/changeset/269757> All reviewed patches have been landed. Closing bug and clearing flags on attachment 413563 [details].
<rdar://problem/71345351>