From: 4xi-2000 <73146951+4xii@users.noreply.github.com> Date: Mon, 27 May 2024 09:21:54 +0000 (+0800) Subject: feat(compiler-core): support `Symbol` global in template expressions (#9069) X-Git-Tag: v3.5.0-alpha.3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a501a85a7c910868e01a5c70a2abea4e9d9e87f3;p=thirdparty%2Fvuejs%2Fcore.git feat(compiler-core): support `Symbol` global in template expressions (#9069) --- diff --git a/packages/shared/src/globalsAllowList.ts b/packages/shared/src/globalsAllowList.ts index 210650e3e2..ca2cba6015 100644 --- a/packages/shared/src/globalsAllowList.ts +++ b/packages/shared/src/globalsAllowList.ts @@ -3,7 +3,7 @@ import { makeMap } from './makeMap' const GLOBALS_ALLOWED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' + '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)