Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c92b8ec

Browse filesBrowse files
jasnellItalo A. Casas
authored andcommitted
tools: add mdn link for Iterator
PR-URL: #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>
1 parent e80f35c commit c92b8ec
Copy full SHA for c92b8ec

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Collapse file

‎tools/doc/type-parser.js‎

Copy file name to clipboardExpand all lines: tools/doc/type-parser.js
+5-4Lines changed: 5 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.