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

Fixes the regression described at https://github.com/vuejs/core/issues/8416#issuecomment-1566583260
This commit is contained in:
Haoqun Jiang 2023-06-14 14:02:53 +08:00 committed by GitHub
parent 96c76facb7
commit 63dfe8eab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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