From 9d7ce29892f4d192756425fc4ef68c60abe60682 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 25 Apr 2020 18:49:24 -0400 Subject: [PATCH] tools: update broken types in type parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The links for the ArrayBufferView and WebAssembly.Instance types appear to be broken. This commit updates them to point to the correct MDN locations. PR-URL: https://github.com/nodejs/node/pull/33068 Reviewed-By: Juan José Arboleda Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- tools/doc/type-parser.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js index add331016c2204..7470bac5bfb5c7 100644 --- a/tools/doc/type-parser.js +++ b/tools/doc/type-parser.js @@ -15,10 +15,10 @@ const jsPrimitives = { const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`; const jsGlobalTypes = [ - 'Array', 'ArrayBuffer', 'ArrayBufferView', 'DataView', 'Date', 'Error', + 'Array', 'ArrayBuffer', 'DataView', 'Date', 'Error', 'EvalError', 'Function', 'Map', 'Object', 'Promise', 'RangeError', 'ReferenceError', 'RegExp', 'Set', 'SharedArrayBuffer', 'SyntaxError', - 'TypeError', 'TypedArray', 'URIError', 'Uint8Array', 'WebAssembly.Instance', + 'TypeError', 'TypedArray', 'URIError', 'Uint8Array', ]; const customTypesMap = { @@ -26,9 +26,14 @@ const customTypesMap = { 'this': `${jsDocPrefix}Reference/Operators/this`, + 'ArrayBufferView': + 'https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView', + 'AsyncIterator': 'https://tc39.github.io/ecma262/#sec-asynciterator-interface', 'bigint': `${jsDocPrefix}Reference/Global_Objects/BigInt`, + 'WebAssembly.Instance': + `${jsDocPrefix}Reference/Global_Objects/WebAssembly/Instance`, 'Iterable': `${jsDocPrefix}Reference/Iteration_protocols#The_iterable_protocol`,