Skip to content

Commit

Permalink
fix(compiler-core): add window into global white list
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Jun 15, 2020
1 parent cf2f278 commit 05baf13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/globalsWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { makeMap } from './makeMap'
const GLOBALS_WHITE_LISTED =
'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl'
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,window'

export const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED)

0 comments on commit 05baf13

Please sign in to comment.