mirror of https://github.com/vuejs/core.git
13 lines
527 B
TypeScript
13 lines
527 B
TypeScript
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,Symbol'
|
|
|
|
export const isGloballyAllowed: (key: string) => boolean =
|
|
/*@__PURE__*/ makeMap(GLOBALS_ALLOWED)
|
|
|
|
/** @deprecated use `isGloballyAllowed` instead */
|
|
export const isGloballyWhitelisted: (key: string) => boolean = isGloballyAllowed
|