Skip to content

Commit

Permalink
🐛 fix uniq function bug with edge (#1065)
Browse files Browse the repository at this point in the history
Co-authored-by: gongshun <gongshun@gridsum.com>
  • Loading branch information
gongshun and gongshun committed Nov 11, 2020
1 parent e537996 commit cc40732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sandbox/proxySandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit cc40732

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for qiankun ready!

✅ Preview
https://qiankun-dro2u2jrv.vercel.app

Built with commit cc40732.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.