Skip to content

Commit

Permalink
tools: add mdn link for Iterator
Browse files Browse the repository at this point in the history
PR-URL: #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]>
  • Loading branch information
jasnell authored and italoacasas committed Jan 30, 2017
1 parent e80f35c commit c92b8ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/doc/type-parser.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
'use strict';
const nodeDocUrl = '';
const jsDocUrl = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/' +
'Reference/Global_Objects/';
const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' +
'JavaScript/Data_structures';
const jsDocPrefix = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/';
const jsDocUrl = jsDocPrefix + 'Reference/Global_Objects/';
const jsPrimitiveUrl = jsDocPrefix + 'Data_structures';
const jsPrimitives = {
'Integer': 'Number', // this is for extending
'Number': 'Number',
Expand Down Expand Up @@ -37,6 +36,8 @@ const typeMap = {
'http.IncomingMessage': 'http.html#http_class_http_incomingmessage',
'http.Server': 'http.html#http_class_http_server',
'http.ServerResponse': 'http.html#http_class_http_serverresponse',
'Iterator': jsDocPrefix +
'Reference/Iteration_protocols#The_iterator_protocol'
};

module.exports = {
Expand Down

0 comments on commit c92b8ec

Please sign in to comment.