]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
feat(compiler-core): support `Symbol` global in template expressions (#9069)
author4xi-2000 <73146951+4xii@users.noreply.github.com>
Mon, 27 May 2024 09:21:54 +0000 (17:21 +0800)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 09:21:54 +0000 (17:21 +0800)
packages/shared/src/globalsAllowList.ts

index 210650e3e2b01a9eb45878f4927ee1ac32115e23..ca2cba6015931bd900076c86b6b75e625777f494 100644 (file)
@@ -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)