module

Highlight::Languages::JavascriptLang

Constants

BUILT_IN_GLOBALS_JS = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"]
BUILT_IN_VARIABLES_JS = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "self", "global"]
BUILT_INS_JS = (BUILT_IN_GLOBALS_JS + TYPES_JS) + ERROR_TYPES_JS
ERROR_TYPES_JS = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"]
IDENT_RE_JS = "[A-Za-z$_][0-9A-Za-z$_]*"
KEYWORDS_JS = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"]
LITERALS_JS = ["true", "false", "null", "undefined", "NaN", "Infinity"]
TYPES_JS = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"]

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects

Class methods

defined(hljs : HLJS) : Mode
Source
keywords_js
Source
number_mode

https://tc39.es/ecma262/#sec-literals-numeric-literals

Source