This is something that works in other browsers like Chrome but fails in Safari. Try executing code like this class MyParams extends URLSearchParams { constructor(init) { super(init) } test() { alert(1); } } var s1 = new MyParams(); s1.test(); // Works in Chrome but breaks in Safari. I understand that extending host object might be just prohibited but it is hard to find any docs on that or confirmation. Could you clarify what is going on here and why WebKit team decided to block something useful like this.
<rdar://problem/51543664>
(In reply to Mikhail V from comment #0) > s1.test(); // Works in Chrome but breaks in Safari. As of r256716, extending URLSearchParams (as well as other DOM constructors) works as expected.