mirror of https://github.com/vuejs/core.git
feat(compiler-core): support `Symbol` global in template expressions (#9069)
This commit is contained in:
parent
b295cdf4e9
commit
a501a85a7c
|
@ -3,7 +3,7 @@ import { makeMap } from './makeMap'
|
||||||
const GLOBALS_ALLOWED =
|
const GLOBALS_ALLOWED =
|
||||||
'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
|
'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
|
||||||
'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
|
'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
|
||||||
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error'
|
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol'
|
||||||
|
|
||||||
export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)
|
export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue