Skip to content

Commit fe76224

Browse files
authored
feat: allow accessing console in template (#6508)
close #7939
1 parent cb37d0b commit fe76224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/src/globalsWhitelist.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { makeMap } from './makeMap'
33
const GLOBALS_WHITE_LISTED =
44
'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
55
'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
6-
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt'
6+
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console'
77

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

0 commit comments

Comments
 (0)