From 69b6d54e0b0db9ba1c000c1987d21f61fc3cab5e Mon Sep 17 00:00:00 2001 From: gongshun <2440606146@qq.com> Date: Wed, 11 Nov 2020 12:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20uniq=20function=20bug=20wi?= =?UTF-8?q?th=20edge=20(#1065)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: gongshun --- src/sandbox/proxySandbox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox/proxySandbox.ts b/src/sandbox/proxySandbox.ts index 7c56f20..2c909b4 100644 --- a/src/sandbox/proxySandbox.ts +++ b/src/sandbox/proxySandbox.ts @@ -14,7 +14,7 @@ import { getTargetValue, setCurrentRunningSandboxProxy } from './common'; function uniq(array: PropertyKey[]) { return array.filter(function filter(this: PropertyKey[], element) { return element in this ? false : ((this as any)[element] = true); - }, {}); + }, Object.create(null)); } // zone.js will overwrite Object.defineProperty