From 8c40ffc32918d23fdc3a344a473d26aa88beccec 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 b244564d8f8ebf..6f98197a741653 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,11 +26,16 @@ 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', 'AsyncIterable': 'https://tc39.github.io/ecma262/#sec-asynciterable-interface', 'bigint': `${jsDocPrefix}Reference/Global_Objects/BigInt`, + 'WebAssembly.Instance': + `${jsDocPrefix}Reference/Global_Objects/WebAssembly/Instance`, 'Iterable': `${jsDocPrefix}Reference/Iteration_protocols#The_iterable_protocol`,