File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
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' ;
7
6
const jsPrimitives = {
8
7
'Integer' : 'Number' , // this is for extending
9
8
'Number' : 'Number' ,
@@ -37,6 +36,8 @@ const typeMap = {
37
36
'http.IncomingMessage' : 'http.html#http_class_http_incomingmessage' ,
38
37
'http.Server' : 'http.html#http_class_http_server' ,
39
38
'http.ServerResponse' : 'http.html#http_class_http_serverresponse' ,
39
+ 'Iterator' : jsDocPrefix +
40
+ 'Reference/Iteration_protocols#The_iterator_protocol'
40
41
} ;
41
42
42
43
module . exports = {
You can’t perform that action at this time.
0 commit comments