Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 815edb0

Browse filesBrowse files
JustappleJustaduh95
authored andcommitted
tools,doc: update JavaScript primitive types to match MDN Web Docs
- Update primitive types to lower case, so the anchor of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Data_structures will work correctly. - Add `bigint` to primitive types to match MDN Web Doc. PR-URL: #60581 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Claudio Wunder <cwunder@gnome.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent e3c5dcf commit 815edb0
Copy full SHA for 815edb0

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Collapse file

‎tools/doc/type-parser.mjs‎

Copy file name to clipboardExpand all lines: tools/doc/type-parser.mjs
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ const jsDocPrefix = `${mdnPrefix}/JavaScript/`;
33

44
const jsDataStructuresUrl = `${jsDocPrefix}Data_structures`;
55
const jsPrimitives = {
6-
boolean: 'Boolean',
7-
integer: 'Number', // Not a primitive, used for clarification.
8-
null: 'Null',
9-
number: 'Number',
10-
string: 'String',
11-
symbol: 'Symbol',
12-
undefined: 'Undefined',
6+
boolean: 'boolean',
7+
integer: 'number', // Not a primitive, used for clarification.
8+
null: 'null',
9+
number: 'number',
10+
string: 'string',
11+
symbol: 'symbol',
12+
undefined: 'undefined',
13+
bigint: 'bigint',
1314
};
1415

1516
const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`;
@@ -43,7 +44,6 @@ const customTypesMap = {
4344

4445
'AsyncGeneratorFunction': 'https://tc39.es/proposal-async-iteration/#sec-asyncgeneratorfunction-constructor',
4546

46-
'bigint': `${jsDocPrefix}Reference/Global_Objects/BigInt`,
4747
'WebAssembly.Instance':
4848
`${jsDocPrefix}Reference/Global_Objects/WebAssembly/Instance`,
4949
'WebAssembly.Memory':

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.