Set of identifier names that can never be accessed from the global scope.
Set of identifier names that can never be accessed from the global scope.
This set includes and is limited to:
arguments
, because any attempt to refer to it always
refers to the magical arguments
pseudo-array from the enclosing
function, rather than a global variable. This set does *not* contain await
, although it is a reserved word
within ES modules. It used to be allowed before 1.11.0, and even
browsers do not seem to reject it. For compatibility reasons, we only
warn about it at compile time, but the IR allows it.
Tests whether the given name is a valid name for a JSGlobalRef
.
Tests whether the given name is a valid name for a JSGlobalRef
.
A name is valid iff it is a JavaScript identifier name (see isJSIdentifierName) *and* it is not reserved (see ReservedJSIdentifierNames).