Explorar o código

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

Fixes the regression described at https://github.com/vuejs/core/issues/8416#issuecomment-1566583260
Haoqun Jiang %!s(int64=3) %!d(string=hai) anos
pai
achega
63dfe8eab4
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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'
 
 export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)
+
+/** @deprecated use `isGloballyAllowed` instead */
+export const isGloballyWhitelisted = isGloballyAllowed