mirror of https://github.com/nodejs/node.git
doc,lib,tools: align multiline comments
These changes are in preparation for enabling a JSDoc lint rule. PR-URL: https://github.com/nodejs/node/pull/41109 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
3697587c31
commit
8aa3ce8b59
|
@ -1010,7 +1010,7 @@ const keyingMaterial = tlsSocket.exportKeyingMaterial(
|
||||||
128,
|
128,
|
||||||
'client finished');
|
'client finished');
|
||||||
|
|
||||||
/**
|
/*
|
||||||
Example return value of keyingMaterial:
|
Example return value of keyingMaterial:
|
||||||
<Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
|
<Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
|
||||||
12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
|
12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
|
||||||
|
|
|
@ -1235,7 +1235,7 @@ import { urlToHttpOptions } from 'url';
|
||||||
const myURL = new URL('https://a:b@測試?abc#foo');
|
const myURL = new URL('https://a:b@測試?abc#foo');
|
||||||
|
|
||||||
console.log(urlToHttpOptions(myURL));
|
console.log(urlToHttpOptions(myURL));
|
||||||
/**
|
/*
|
||||||
{
|
{
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
hostname: 'xn--g6w251d',
|
hostname: 'xn--g6w251d',
|
||||||
|
@ -1254,7 +1254,7 @@ const { urlToHttpOptions } = require('url');
|
||||||
const myURL = new URL('https://a:b@測試?abc#foo');
|
const myURL = new URL('https://a:b@測試?abc#foo');
|
||||||
|
|
||||||
console.log(urlToHttpOptions(myUrl));
|
console.log(urlToHttpOptions(myUrl));
|
||||||
/**
|
/*
|
||||||
{
|
{
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
hostname: 'xn--g6w251d',
|
hostname: 'xn--g6w251d',
|
||||||
|
|
|
@ -192,7 +192,7 @@ class NativeModule {
|
||||||
/**
|
/**
|
||||||
* A map from the module IDs to the module instances.
|
* A map from the module IDs to the module instances.
|
||||||
* @type {Map<string, NativeModule>}
|
* @type {Map<string, NativeModule>}
|
||||||
*/
|
*/
|
||||||
static map = new SafeMap(
|
static map = new SafeMap(
|
||||||
ArrayPrototypeMap(moduleIds, (id) => [id, new NativeModule(id)])
|
ArrayPrototypeMap(moduleIds, (id) => [id, new NativeModule(id)])
|
||||||
);
|
);
|
||||||
|
|
|
@ -30,9 +30,9 @@ module.exports.isRequired = function(node, modules) {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if common module is required
|
* Return true if common module is required
|
||||||
* in AST Node under inspection
|
* in AST Node under inspection
|
||||||
*/
|
*/
|
||||||
const commonModuleRegExp = new RegExp(/^(\.\.\/)*common(\.js)?$/);
|
const commonModuleRegExp = new RegExp(/^(\.\.\/)*common(\.js)?$/);
|
||||||
module.exports.isCommonModule = function(node) {
|
module.exports.isCommonModule = function(node) {
|
||||||
return isRequireCall(node) &&
|
return isRequireCall(node) &&
|
||||||
|
|
Loading…
Reference in New Issue