You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeof import.meta === "object", typeof this === "object" (usually), typeof new.target === "function", but they are all in the "Expressions & statements" section. I understand that null is a constant while all these are contextually defined, but x being a "global object" means Object.hasOwn(globalThis, "x") is true. This holds for undefined and NaN but not for null.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
null
is put under the "Built-in objects" category, which is incorrect, becausenull
is a keyword, not a property.What did you expect to see?
I expect it to be moved to "Expressions & Operators", where
new.target
,this
, etc. live.That would separate this from
undefined
, which is desirable becauseundefined
acts more like a "built-in object".Do you have any supporting links, references, or citations?
https://tc39.es/ecma262/#prod-ReservedWord
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/javascript/reference/global_objects/null
The text was updated successfully, but these errors were encountered: