From a501a85a7c910868e01a5c70a2abea4e9d9e87f3 Mon Sep 17 00:00:00 2001 From: 4xi-2000 <73146951+4xii@users.noreply.github.com> Date: Mon, 27 May 2024 17:21:54 +0800 Subject: [PATCH] feat(compiler-core): support `Symbol` global in template expressions (#9069) --- packages/shared/src/globalsAllowList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/src/globalsAllowList.ts b/packages/shared/src/globalsAllowList.ts index 210650e3e2b..ca2cba60159 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)