Open
Description
I see a few issues with DOC_TYPES_MAPPING_GLOBALS
:
- As https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects grows over time, our
DOC_TYPES_MAPPING_GLOBALS
variable will be out-of-date. We should probably do one of:- (a) fetch the globals at runtime, or
- (b) have a
update:globals
script that's run once a month to check the globals for updates, whose source of truth is:- (i) MDN
- (ii) The
globals.md
file of Node.js'shead
branch1
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects is, as far as I can tell, incomplete. It doesn't include things that are a part of Web APIs, like
fetch
,Crypto
, andlocalStorage
. It's also, expectedly, missing Node.js-specific globals likeBuffer
,__dirname
,exports
, etc. (See 1.b.ii)
Footnotes
-
When generating docs for older versions, this won't conflict, since they simply won't have the headers ↩
Metadata
Metadata
Assignees
Labels
No labels