Description
Checks that the index is a string and that it is present in the static allowedGlobals set. On match, returns globalThis cast as an object. Returns null for any identifier not in the list.
This resolver sits last in the default IIdentifierOwnerResolverList so that model properties always take precedence over globals with the same name.
Allowed globals
Math, Date, Number, String, Boolean, BigInt, Symbol, Object, Array, RegExp, Map, Set, WeakMap, WeakSet, Promise, Error, TypeError, RangeError, ReferenceError, SyntaxError, URIError, AggregateError, JSON, Intl, Reflect, Proxy, parseInt, parseFloat, isNaN, isFinite, encodeURI, encodeURIComponent, decodeURI, decodeURIComponent, setTimeout, clearTimeout, setInterval, clearInterval, console
To allow additional globals, replace this resolver via overrideMultiInjectServices with a custom implementation that extends the set.