Skip to content

Commit

Permalink
fix: in miniapp (worker runtime) , globalThis is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
jinc.cjc committed Dec 3, 2019
1 parent fba8e15 commit 745a0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ function globalThis() {
return global
}
} catch (e) {}
return Function('return this')()
return Function('return this')
}
export const globalThisPolyfill = globalThis()

0 comments on commit 745a0d9

Please sign in to comment.