Created attachment 384224 [details] Safari webconsole ``` class QueryString extends URLSearchParams { toString() { const string = super.toString(); return string ? `?${string}` : ''; } } new QueryString({a: 1, b: 2}).toString() ``` Expectation: "?a=1&b=2" Actual: "a=1&b=2"
Created attachment 384225 [details] Firefox webconsole
<rdar://problem/57454362>
(In reply to 709922234 from comment #0) > Expectation: "?a=1&b=2" > Actual: "a=1&b=2" As of https://trac.webkit.org/changeset/256716, extending URLSearchParams (as well as other DOM constructors) works as expected.