summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-01-05 07:27:48 -0800
committerJames M Snell <jasnell@gmail.com>2017-01-23 09:57:36 -0800
commit0c712b67434b250f48460c06dce6877dd439a7eb (patch)
tree254521ab41d35568837e1906038530cb2944d246 /tools
parent71f541411d56b3dceb087c0c0c50b86fc451e069 (diff)
downloadandroid-node-v8-0c712b67434b250f48460c06dce6877dd439a7eb.tar.gz
android-node-v8-0c712b67434b250f48460c06dce6877dd439a7eb.tar.bz2
android-node-v8-0c712b67434b250f48460c06dce6877dd439a7eb.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/type-parser.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js
index 38451b0e16..0ac15a14b9 100644
--- a/tools/doc/type-parser.js
+++ b/tools/doc/type-parser.js
@@ -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',
@@ -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 = {