GLOBALS.md
January 11, 2019 ยท View on GitHub
Multi-environment properties of the global object
Properties of the global object are the entry-point to the web's current JavaScript APIs, as built-in modules are not yet exposed. This page documents properties of the global object that are shared between embedders, and the level of compatibility between them.
Note, information about Node.js compatibility is welcome in MDN.
Conventions
- Only include APIs which have built-in support in at least two environments, at least one of which is the Web.
- Link to MDN for browser compatibility data (there is a multivendor effort to keep this data in good shape).
- Include at most a short note about compatibility inline, and use a separate Markdown file for more extensive notes.
- When possible, include information about support in the following embedding environments:
URL
Spec: https://url.spec.whatwg.org
Environments supported:
- Web
- Node.js: URL and URLSearchParams
Compatibility: Node.js implements the same interface, modulo brand checks and IDL mistakes in Node.js (TODO: be more specific)
Encoding standard
Spec: https://encoding.spec.whatwg.org
Environments supported:
- Web
- Node.js: TextEncoder and TextDecoder
Compatibility: Node.js does not support the *Stream encoding interfaces. The set of encoding supported by Node is dependent on compilation options; see Node documentation for more details.
WebAssembly JS API
Spec: https://www.w3.org/TR/wasm-js-api-1/
Environments supported:
- Web
- Node.js: not documented yet
Console API
Spec: https://console.spec.whatwg.org
Environments supported: