Browse Source

fix: add isGloballyWhitelisted back, but deprecated (#8556)

Fixes the regression described at https://github.com/vuejs/core/issues/8416#issuecomment-1566583260
Haoqun Jiang 3 years ago
parent
commit
63dfe8eab4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/shared/src/globalsAllowList.ts

+ 3 - 0
packages/shared/src/globalsAllowList.ts

@@ -6,3 +6,6 @@ const GLOBALS_ALLOWED =
   'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console'
   'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console'
 
 
 export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)
 export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)
+
+/** @deprecated use `isGloballyAllowed` instead */
+export const isGloballyWhitelisted = isGloballyAllowed