tools: add mdn link for Iterator
PR-URL: https://github.com/nodejs/node/pull/10620 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
parent
71f541411d
commit
0c712b6743
@ -1,9 +1,8 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const nodeDocUrl = '';
|
const nodeDocUrl = '';
|
||||||
const jsDocUrl = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/' +
|
const jsDocPrefix = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/';
|
||||||
'Reference/Global_Objects/';
|
const jsDocUrl = jsDocPrefix + 'Reference/Global_Objects/';
|
||||||
const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' +
|
const jsPrimitiveUrl = jsDocPrefix + 'Data_structures';
|
||||||
'JavaScript/Data_structures';
|
|
||||||
const jsPrimitives = {
|
const jsPrimitives = {
|
||||||
'Integer': 'Number', // this is for extending
|
'Integer': 'Number', // this is for extending
|
||||||
'Number': 'Number',
|
'Number': 'Number',
|
||||||
@ -37,6 +36,8 @@ const typeMap = {
|
|||||||
'http.IncomingMessage': 'http.html#http_class_http_incomingmessage',
|
'http.IncomingMessage': 'http.html#http_class_http_incomingmessage',
|
||||||
'http.Server': 'http.html#http_class_http_server',
|
'http.Server': 'http.html#http_class_http_server',
|
||||||
'http.ServerResponse': 'http.html#http_class_http_serverresponse',
|
'http.ServerResponse': 'http.html#http_class_http_serverresponse',
|
||||||
|
'Iterator': jsDocPrefix +
|
||||||
|
'Reference/Iteration_protocols#The_iterator_protocol'
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user