Skip to content

Conversation

@specious
Copy link

@specious specious commented Mar 3, 2015

No description provided.

@omninonsense
Copy link

This isn't exactly true. If we're talking about undefined as a reference, it is still only an immutable (unwritable, & unconfigurable) property of the global object (hence, a global reference).

However, you cold still redefine what value undefined references in a different scope. Meaning, that the following code is valid (but silly) JavaScript:

(function (global) {
  var undefined = 10;
  return (undefined * 4 + 2);
})(this); // returns 42

@specious
Copy link
Author

specious commented Aug 2, 2021

Superseded by #164.

@specious specious closed this Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants