Skip to content

Commit 5e7d97f

Browse files
committed
fix: Cannot assign to read only property 'asyncIterator' of function 'function Symbol
1 parent 6e49ad0 commit 5e7d97f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Utility/Polyfills.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import * as values from "object.values";
22
import * as entries from "object.entries";
33

4-
(Symbol as any).asyncIterator = Symbol.asyncIterator || Symbol("Symbol.asyncIterator");
4+
if (!Symbol.asyncIterator) {
5+
(Symbol as any).asyncIterator = Symbol("Symbol.asyncIterator");
6+
}
57

68
if (!Object.values) {
79
values.shim();

0 commit comments

Comments
 (0)