Skip to content

Commit

Permalink
feat: allow accessing console in template (#6508)
Browse files Browse the repository at this point in the history
close #7939
  • Loading branch information
zhangenming committed Apr 21, 2023
1 parent cb37d0b commit fe76224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/globalsWhitelist.ts
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,BigInt'
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console'

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

0 comments on commit fe76224

Please sign in to comment.