From ffdeb1130876e080c14a29f36d5802cac22b4bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jimmy=20Wa=CC=88rting?= Date: Wed, 29 Sep 2021 23:47:26 +0200 Subject: [PATCH] fix: symbol.hasInstance needed to be static --- esm.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esm.min.js b/esm.min.js index 94d9268..06d235a 100644 --- a/esm.min.js +++ b/esm.min.js @@ -18,7 +18,7 @@ export const FormData = class FormData { constructor(...a){if(a.length)throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`)} get [t]() {return 'FormData'} [i](){return this.entries()} -[h](o) {return typeof o==='object'&&o[t]==='FormData'&&!m.some(m=>typeof o[m]!='function')} +static [h](o) {return typeof o==='object'&&o[t]==='FormData'&&!m.some(m=>typeof o[m]!='function')} append(...a){x('append',arguments,2);this.#d.push(f(...a))} delete(a){x('delete',arguments,1);a+='';this.#d=this.#d.filter(([b])=>b!==a)} get(a){x('get',arguments,1);a+='';for(var b=this.#d,l=b.length,c=0;c