]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
feat: allow accessing console in template (#6508)
authorzhangenming <282126346@qq.com>
Fri, 21 Apr 2023 07:10:36 +0000 (15:10 +0800)
committerGitHub <noreply@github.com>
Fri, 21 Apr 2023 07:10:36 +0000 (15:10 +0800)
close #7939

packages/shared/src/globalsWhitelist.ts

index f383450c88d9037bf3726b594ce208b67fdb23bd..9485a41dafa7822859a145d90fabffa9db7fb388 100644 (file)
@@ -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)