Skip to content

Commit 8c40ffc

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 4423304 commit 8c40ffc

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,22 +15,27 @@ 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
'AsyncIterable': 'https://tc39.github.io/ecma262/#sec-asynciterable-interface',
3235

3336
'bigint': `${jsDocPrefix}Reference/Global_Objects/BigInt`,
37+
'WebAssembly.Instance':
38+
`${jsDocPrefix}Reference/Global_Objects/WebAssembly/Instance`,
3439

3540
'Iterable':
3641
`${jsDocPrefix}Reference/Iteration_protocols#The_iterable_protocol`,

0 commit comments

Comments
 (0)