tools: remove unused global types from type-parser
`tools/doc/type-parser.js` has several global types that are not used. Remove the unused global types. PR-URL: https://github.com/nodejs/node/pull/21135 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
parent
55e597d306
commit
6ac3c44012
@ -15,13 +15,10 @@ const jsPrimitives = {
|
|||||||
|
|
||||||
const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`;
|
const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`;
|
||||||
const jsGlobalTypes = [
|
const jsGlobalTypes = [
|
||||||
'Array', 'ArrayBuffer', 'AsyncFunction', 'DataView', 'Date', 'Error',
|
'Array', 'ArrayBuffer', 'DataView', 'Date', 'Error', 'EvalError', 'Function',
|
||||||
'EvalError', 'Float32Array', 'Float64Array', 'Function', 'Generator',
|
'Object', 'Promise', 'RangeError', 'ReferenceError', 'RegExp',
|
||||||
'GeneratorFunction', 'Int16Array', 'Int32Array', 'Int8Array', 'Map', 'Object',
|
|
||||||
'Promise', 'Proxy', 'RangeError', 'ReferenceError', 'RegExp', 'Set',
|
|
||||||
'SharedArrayBuffer', 'SyntaxError', 'TypeError', 'TypedArray', 'URIError',
|
'SharedArrayBuffer', 'SyntaxError', 'TypeError', 'TypedArray', 'URIError',
|
||||||
'Uint16Array', 'Uint32Array', 'Uint8Array', 'Uint8ClampedArray', 'WeakMap',
|
'Uint8Array',
|
||||||
'WeakSet'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const customTypesMap = {
|
const customTypesMap = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user