Skip to content

Commit b9d9c24

Browse files
cjihrigtargos
authored andcommitted
tools: update broken types in type parser
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: #33068 Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6a9f867 commit b9d9c24

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/doc/type-parser.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,25 @@ const jsPrimitives = {
1515

1616
const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`;
1717
const jsGlobalTypes = [
18-
'Array', 'ArrayBuffer', 'ArrayBufferView', 'DataView', 'Date', 'Error',
18+
'Array', 'ArrayBuffer', 'DataView', 'Date', 'Error',
1919
'EvalError', 'Function', 'Map', 'Object', 'Promise', 'RangeError',
2020
'ReferenceError', 'RegExp', 'Set', 'SharedArrayBuffer', 'SyntaxError',
21-
'TypeError', 'TypedArray', 'URIError', 'Uint8Array', 'WebAssembly.Instance',
21+
'TypeError', 'TypedArray', 'URIError', 'Uint8Array',
2222
];
2323

2424
const customTypesMap = {
2525
'any': `${jsDataStructuresUrl}#Data_types`,
2626

2727
'this': `${jsDocPrefix}Reference/Operators/this`,
2828

29+
'ArrayBufferView':
30+
'https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView',
31+
2932
'AsyncIterator': 'https://tc39.github.io/ecma262/#sec-asynciterator-interface',
3033

3134
'bigint': `${jsDocPrefix}Reference/Global_Objects/BigInt`,
35+
'WebAssembly.Instance':
36+
`${jsDocPrefix}Reference/Global_Objects/WebAssembly/Instance`,
3237

3338
'Iterable':
3439
`${jsDocPrefix}Reference/Iteration_protocols#The_iterable_protocol`,

0 commit comments

Comments
 (0)