Skip to content

Commit

Permalink
feat: allow accessing console in template (vuejs#6508)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored and IAmSSH committed Apr 29, 2023
1 parent afd3678 commit c09cbc7
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,BigInt'
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console'

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

0 comments on commit c09cbc7

Please sign in to comment.