Skip to content

Commit 36e2491

Browse files
authored
fix: symbol.hasInstance needed to be static (#136)
1 parent 04ed0f9 commit 36e2491

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esm.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const FormData = class FormData {
1818
constructor(...a){if(a.length)throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`)}
1919
get [t]() {return 'FormData'}
2020
[i](){return this.entries()}
21-
[h](o) {return typeof o==='object'&&o[t]==='FormData'&&!m.some(m=>typeof o[m]!='function')}
21+
static [h](o) {return typeof o==='object'&&o[t]==='FormData'&&!m.some(m=>typeof o[m]!='function')}
2222
append(...a){x('append',arguments,2);this.#d.push(f(...a))}
2323
delete(a){x('delete',arguments,1);a+='';this.#d=this.#d.filter(([b])=>b!==a)}
2424
get(a){x('get',arguments,1);a+='';for(var b=this.#d,l=b.length,c=0;c<l;c++)if(b[c][0]===a)return b[c][1];return null}

0 commit comments

Comments
 (0)