tools,doc: update JavaScript primitive types to match MDN Web Docs · nodejs/node@815edb0

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':