| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9db3304 commit d56e826
28 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1326,7 +1326,7 @@ const subprocess = spawn( | |||
| 1326 | 1326 | '-c', | |
| 1327 | 1327 | `node -e "setInterval(() => { | |
| 1328 | 1328 | console.log(process.pid, 'is alive') | |
| 1329 | - }, 500);"` | ||
| 1329 | + }, 500);"`, | ||
| 1330 | 1330 | ], { | |
| 1331 | 1331 | stdio: ['inherit', 'inherit', 'inherit'] | |
| 1332 | 1332 | } | |
@@ -1661,7 +1661,7 @@ const subprocess = child_process.spawn('ls', { | |||
| 1661 | 1661 | stdio: [ | |
| 1662 | 1662 | 0, // Use parent's stdin for child. | |
| 1663 | 1663 | 'pipe', // Pipe child's stdout to parent. | |
| 1664 | - fs.openSync('err.out', 'w') // Direct child's stderr to a file. | ||
| 1664 | + fs.openSync('err.out', 'w'), // Direct child's stderr to a file. | ||
| 1665 | 1665 | ] | |
| 1666 | 1666 | }); | |
| 1667 | 1667 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -160,7 +160,7 @@ section if a custom port is used. | |||
| 160 | 160 | '4.4.4.4', | |
| 161 | 161 | '2001:4860:4860::8888', | |
| 162 | 162 | '4.4.4.4:1053', | |
| 163 | - '[2001:4860:4860::8888]:1053' | ||
| 163 | + '[2001:4860:4860::8888]:1053', | ||
| 164 | 164 | ] | |
| 165 | 165 | ``` | |
| 166 | 166 | ||
@@ -666,7 +666,7 @@ dns.setServers([ | |||
| 666 | 666 | '4.4.4.4', | |
| 667 | 667 | '[2001:4860:4860::8888]', | |
| 668 | 668 | '4.4.4.4:1053', | |
| 669 | - '[2001:4860:4860::8888]:1053' | ||
| 669 | + '[2001:4860:4860::8888]:1053', | ||
| 670 | 670 | ]); | |
| 671 | 671 | ``` | |
| 672 | 672 | ||
@@ -773,7 +773,7 @@ section if a custom port is used. | |||
| 773 | 773 | '4.4.4.4', | |
| 774 | 774 | '2001:4860:4860::8888', | |
| 775 | 775 | '4.4.4.4:1053', | |
| 776 | - '[2001:4860:4860::8888]:1053' | ||
| 776 | + '[2001:4860:4860::8888]:1053', | ||
| 777 | 777 | ] | |
| 778 | 778 | ``` | |
| 779 | 779 | ||
@@ -1184,7 +1184,7 @@ dnsPromises.setServers([ | |||
| 1184 | 1184 | '4.4.4.4', | |
| 1185 | 1185 | '[2001:4860:4860::8888]', | |
| 1186 | 1186 | '4.4.4.4:1053', | |
| 1187 | - '[2001:4860:4860::8888]:1053' | ||
| 1187 | + '[2001:4860:4860::8888]:1053', | ||
| 1188 | 1188 | ]); | |
| 1189 | 1189 | ``` | |
| 1190 | 1190 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -115,7 +115,7 @@ The properties included on each object include: | |||
| 115 | 115 | idle: 1070905480, | |
| 116 | 116 | irq: 20 | |
| 117 | 117 | } | |
| 118 | - } | ||
| 118 | + }, | ||
| 119 | 119 | ] | |
| 120 | 120 | ``` | |
| 121 | 121 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -573,7 +573,7 @@ with [`JSON.stringify()`][]. | |||
| 573 | 573 | ```js | |
| 574 | 574 | const myURLs = [ | |
| 575 | 575 | new URL('https://www.example.com'), | |
| 576 | - new URL('https://test.example.org') | ||
| 576 | + new URL('https://test.example.org'), | ||
| 577 | 577 | ]; | |
| 578 | 578 | console.log(JSON.stringify(myURLs)); | |
| 579 | 579 | // Prints ["https://www.example.com/","https://test.example.org/"] | |
@@ -710,7 +710,7 @@ let params; | |||
| 710 | 710 | params = new URLSearchParams([ | |
| 711 | 711 | ['user', 'abc'], | |
| 712 | 712 | ['query', 'first'], | |
| 713 | - ['query', 'second'] | ||
| 713 | + ['query', 'second'], | ||
| 714 | 714 | ]); | |
| 715 | 715 | console.log(params.toString()); | |
| 716 | 716 | // Prints 'user=abc&query=first&query=second' | |
@@ -735,7 +735,7 @@ console.log(params.toString()); | |||
| 735 | 735 | ||
| 736 | 736 | // Each key-value pair must have exactly two elements | |
| 737 | 737 | new URLSearchParams([ | |
| 738 | - ['user', 'abc', 'error'] | ||
| 738 | + ['user', 'abc', 'error'], | ||
| 739 | 739 | ]); | |
| 740 | 740 | // Throws TypeError [ERR_INVALID_TUPLE]: | |
| 741 | 741 | // Each query pair must be an iterable [name, value] tuple | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,7 +91,7 @@ const meta = [ | |||
| 91 | 91 | '\\u000f', '\\u0010', '\\u0011', '\\u0012', '\\u0013', | |
| 92 | 92 | '\\u0014', '\\u0015', '\\u0016', '\\u0017', '\\u0018', | |
| 93 | 93 | '\\u0019', '\\u001a', '\\u001b', '\\u001c', '\\u001d', | |
| 94 | - '\\u001e', '\\u001f' | ||
| 94 | + '\\u001e', '\\u001f', | ||
| 95 | 95 | ]; | |
| 96 | 96 | ||
| 97 | 97 | const escapeFn = (str) => meta[StringPrototypeCharCodeAt(str, 0)]; | |
@@ -268,7 +268,7 @@ function parseCode(code, offset) { | |||
| 268 | 268 | node.node.start, | |
| 269 | 269 | StringPrototypeReplace(StringPrototypeSlice(code, | |
| 270 | 270 | node.node.start, node.node.end), | |
| 271 | - escapeSequencesRegExp, escapeFn) | ||
| 271 | + escapeSequencesRegExp, escapeFn), | ||
| 272 | 272 | ]; | |
| 273 | 273 | } | |
| 274 | 274 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -103,7 +103,7 @@ const internalBindingAllowlist = new SafeSet([ | |||
| 103 | 103 | 'util', | |
| 104 | 104 | 'uv', | |
| 105 | 105 | 'v8', | |
| 106 | - 'zlib' | ||
| 106 | + 'zlib', | ||
| 107 | 107 | ]); | |
| 108 | 108 | ||
| 109 | 109 | // Set up process.binding() and process._linkedBinding(). | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -252,7 +252,7 @@ function initializeDeprecations() { | |||
| 252 | 252 | 'isSetIterator', | |
| 253 | 253 | 'isTypedArray', | |
| 254 | 254 | 'isUint8Array', | |
| 255 | - 'isAnyArrayBuffer' | ||
| 255 | + 'isAnyArrayBuffer', | ||
| 256 | 256 | ]) { | |
| 257 | 257 | utilBinding[name] = pendingDeprecation ? | |
| 258 | 258 | deprecate(types[name], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -532,7 +532,7 @@ const consoleMethods = { | |||
| 532 | 532 | } | |
| 533 | 533 | } | |
| 534 | 534 | return final([ | |
| 535 | - iterKey, keyKey, valuesKey | ||
| 535 | + iterKey, keyKey, valuesKey, | ||
| 536 | 536 | ], [ | |
| 537 | 537 | getIndexArray(length), | |
| 538 | 538 | keys, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -223,7 +223,7 @@ function handleError(ex, buf) { | |||
| 223 | 223 | ||
| 224 | 224 | const kHexDigits = [ | |
| 225 | 225 | 48, 49, 50, 51, 52, 53, 54, 55, | |
| 226 | - 56, 57, 97, 98, 99, 100, 101, 102 | ||
| 226 | + 56, 57, 97, 98, 99, 100, 101, 102, | ||
| 227 | 227 | ]; | |
| 228 | 228 | ||
| 229 | 229 | const kBatchSize = 128; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -286,7 +286,7 @@ const encodings = new SafeMap([ | |||
| 286 | 286 | ['windows-949', 'euc-kr'], | |
| 287 | 287 | ['utf-16be', 'utf-16be'], | |
| 288 | 288 | ['utf-16le', 'utf-16le'], | |
| 289 | - ['utf-16', 'utf-16le'] | ||
| 289 | + ['utf-16', 'utf-16le'], | ||
| 290 | 290 | ]); | |
| 291 | 291 | ||
| 292 | 292 | // Unfortunately, String.prototype.trim also removes non-ascii whitespace, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments