Browse Source
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>
v7.x
James M Snell
8 years ago
committed by
Italo A. Casas
No known key found for this signature in database
GPG Key ID: 23EFEFE93C4CFFFE
1 changed files with
5 additions and
4 deletions
-
tools/doc/type-parser.js
|
@ -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 = { |
|
|