Skip to content

Commit c92b8ec

Browse files
jasnellitaloacasas
authored andcommittedJan 30, 2017
tools: add mdn link for Iterator
PR-URL: nodejs#10620 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Michal Zasso <[email protected]> Reviewed-By: Timothy Gu <[email protected]>
1 parent e80f35c commit c92b8ec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎tools/doc/type-parser.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use strict';
22
const nodeDocUrl = '';
3-
const jsDocUrl = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/' +
4-
'Reference/Global_Objects/';
5-
const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' +
6-
'JavaScript/Data_structures';
3+
const jsDocPrefix = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/';
4+
const jsDocUrl = jsDocPrefix + 'Reference/Global_Objects/';
5+
const jsPrimitiveUrl = jsDocPrefix + 'Data_structures';
76
const jsPrimitives = {
87
'Integer': 'Number', // this is for extending
98
'Number': 'Number',
@@ -37,6 +36,8 @@ const typeMap = {
3736
'http.IncomingMessage': 'http.html#http_class_http_incomingmessage',
3837
'http.Server': 'http.html#http_class_http_server',
3938
'http.ServerResponse': 'http.html#http_class_http_serverresponse',
39+
'Iterator': jsDocPrefix +
40+
'Reference/Iteration_protocols#The_iterator_protocol'
4041
};
4142

4243
module.exports = {

0 commit comments

Comments
 (0)