| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f0bf373 commit 330f25e
407 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ if (process.argv[2] === 'child') { | |||
| 12 | 12 | } | |
| 13 | 13 | ||
| 14 | 14 | const child = spawn(process.execPath, [ | |
| 15 | - '--abort-on-uncaught-exception', __filename, 'child' | ||
| 15 | + '--abort-on-uncaught-exception', __filename, 'child', | ||
| 16 | 16 | ]); | |
| 17 | 17 | child.on('exit', common.mustCall((code, sig) => { | |
| 18 | 18 | if (common.isWindows) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ for (const raiseSignal of [ 'SIGABRT', 'SIGSEGV' ]) { | |||
| 34 | 34 | { reset: true, count: 1, stderr: [signo], code: 0, signal: null }, | |
| 35 | 35 | { reset: true, count: 2, stderr: [signo], code: null, signal: raiseSignal }, | |
| 36 | 36 | { reset: false, count: 1, stderr: [signo], code: 0, signal: null }, | |
| 37 | - { reset: false, count: 2, stderr: [signo, signo], code: 0, signal: null } | ||
| 37 | + { reset: false, count: 2, stderr: [signo, signo], code: 0, signal: null }, | ||
| 38 | 38 | ]) { | |
| 39 | 39 | // We do not want to generate core files when running this test as an | |
| 40 | 40 | // addon test. We require this file as an abort test as well, though, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,7 @@ for (const { test, expected } of [ | |||
| 48 | 48 | // musl doesn't support unloading, so the output may be missing | |
| 49 | 49 | // a dtor + ctor pair. | |
| 50 | 50 | expected: [ | |
| 51 | - 'ctor cleanup dtor ctor cleanup dtor ' | ||
| 51 | + 'ctor cleanup dtor ctor cleanup dtor ', | ||
| 52 | 52 | ].concat(libcMayBeMusl ? [ | |
| 53 | 53 | 'ctor cleanup cleanup dtor ', | |
| 54 | 54 | ] : []) | |
@@ -57,7 +57,7 @@ for (const { test, expected } of [ | |||
| 57 | 57 | console.log('spawning test', test); | |
| 58 | 58 | const proc = child_process.spawnSync(process.execPath, [ | |
| 59 | 59 | __filename, | |
| 60 | - test | ||
| 60 | + test, | ||
| 61 | 61 | ]); | |
| 62 | 62 | process.stderr.write(proc.stderr.toString()); | |
| 63 | 63 | assert.strictEqual(proc.stderr.toString(), ''); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,7 +65,7 @@ function onexit() { | |||
| 65 | 65 | { type: 'TCPCONNECTWRAP', | |
| 66 | 66 | id: 'tcpconnect:1', triggerAsyncId: 'tcp:1' }, | |
| 67 | 67 | { type: 'TCPWRAP', id: 'tcp:2', triggerAsyncId: 'tcpserver:1' }, | |
| 68 | - { type: 'TLSWRAP', id: 'tls:2', triggerAsyncId: 'tcpserver:1' } | ||
| 68 | + { type: 'TLSWRAP', id: 'tls:2', triggerAsyncId: 'tcpserver:1' }, | ||
| 69 | 69 | ] | |
| 70 | 70 | ); | |
| 71 | 71 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -115,12 +115,12 @@ expectWarning('Warning', 'Foobar is really bad'); | |||
| 115 | 115 | expectWarning('DeprecationWarning', 'Foobar is deprecated', 'DEP0XXX'); | |
| 116 | 116 | ||
| 117 | 117 | expectWarning('DeprecationWarning', [ | |
| 118 | - 'Foobar is deprecated', 'DEP0XXX' | ||
| 118 | + 'Foobar is deprecated', 'DEP0XXX', | ||
| 119 | 119 | ]); | |
| 120 | 120 | ||
| 121 | 121 | expectWarning('DeprecationWarning', [ | |
| 122 | 122 | ['Foobar is deprecated', 'DEP0XXX'], | |
| 123 | - ['Baz is also deprecated', 'DEP0XX2'] | ||
| 123 | + ['Baz is also deprecated', 'DEP0XX2'], | ||
| 124 | 124 | ]); | |
| 125 | 125 | ||
| 126 | 126 | expectWarning('DeprecationWarning', { | |
@@ -135,7 +135,7 @@ expectWarning({ | |||
| 135 | 135 | }, | |
| 136 | 136 | Warning: [ | |
| 137 | 137 | ['Multiple array entries are fine', 'SpecialWarningCode'], | |
| 138 | - ['No code is also fine'] | ||
| 138 | + ['No code is also fine'], | ||
| 139 | 139 | ], | |
| 140 | 140 | SingleEntry: ['This will also work', 'WarningCode'], | |
| 141 | 141 | SingleString: 'Single string entries without code will also work' | |
@@ -665,9 +665,9 @@ validateSnapshotNodes('TLSWRAP', [ | |||
| 665 | 665 | children: [ | |
| 666 | 666 | { name: 'enc_out' }, | |
| 667 | 667 | { name: 'enc_in' }, | |
| 668 | - { name: 'TLSWrap' } | ||
| 668 | + { name: 'TLSWrap' }, | ||
| 669 | 669 | ] | |
| 670 | - } | ||
| 670 | + }, | ||
| 671 | 671 | ]); | |
| 672 | 672 | ``` | |
| 673 | 673 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,7 +60,7 @@ function parseDNSPacket(buffer) { | |||
| 60 | 60 | ['questions', buffer.readUInt16BE(4)], | |
| 61 | 61 | ['answers', buffer.readUInt16BE(6)], | |
| 62 | 62 | ['authorityAnswers', buffer.readUInt16BE(8)], | |
| 63 | - ['additionalRecords', buffer.readUInt16BE(10)] | ||
| 63 | + ['additionalRecords', buffer.readUInt16BE(10)], | ||
| 64 | 64 | ]; | |
| 65 | 65 | ||
| 66 | 66 | let offset = 12; | |
@@ -185,7 +185,7 @@ function writeDomainName(domain) { | |||
| 185 | 185 | assert(label.length < 64); | |
| 186 | 186 | return Buffer.concat([ | |
| 187 | 187 | Buffer.from([label.length]), | |
| 188 | - Buffer.from(label, 'ascii') | ||
| 188 | + Buffer.from(label, 'ascii'), | ||
| 189 | 189 | ]); | |
| 190 | 190 | }).concat([Buffer.alloc(1)])); | |
| 191 | 191 | } | |
@@ -208,7 +208,7 @@ function writeDNSPacket(parsed) { | |||
| 208 | 208 | buffers.push(writeDomainName(q.domain)); | |
| 209 | 209 | buffers.push(new Uint16Array([ | |
| 210 | 210 | types[q.type], | |
| 211 | - q.cls === undefined ? classes.IN : q.cls | ||
| 211 | + q.cls === undefined ? classes.IN : q.cls, | ||
| 212 | 212 | ])); | |
| 213 | 213 | } | |
| 214 | 214 | ||
@@ -221,7 +221,7 @@ function writeDNSPacket(parsed) { | |||
| 221 | 221 | buffers.push(writeDomainName(rr.domain)); | |
| 222 | 222 | buffers.push(new Uint16Array([ | |
| 223 | 223 | types[rr.type], | |
| 224 | - rr.cls === undefined ? classes.IN : rr.cls | ||
| 224 | + rr.cls === undefined ? classes.IN : rr.cls, | ||
| 225 | 225 | ])); | |
| 226 | 226 | buffers.push(new Int32Array([rr.ttl])); | |
| 227 | 227 | ||
@@ -266,7 +266,7 @@ function writeDNSPacket(parsed) { | |||
| 266 | 266 | rdLengthBuf[0] = mname.length + rname.length + 20; | |
| 267 | 267 | buffers.push(mname, rname); | |
| 268 | 268 | buffers.push(new Uint32Array([ | |
| 269 | - rr.serial, rr.refresh, rr.retry, rr.expire, rr.minttl | ||
| 269 | + rr.serial, rr.refresh, rr.retry, rr.expire, rr.minttl, | ||
| 270 | 270 | ])); | |
| 271 | 271 | break; | |
| 272 | 272 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -612,7 +612,7 @@ function getArrayBufferViews(buf) { | |||
| 612 | 612 | Uint32Array, | |
| 613 | 613 | Float32Array, | |
| 614 | 614 | Float64Array, | |
| 615 | - DataView | ||
| 615 | + DataView, | ||
| 616 | 616 | ]; | |
| 617 | 617 | ||
| 618 | 618 | for (const type of arrayBufferViews) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -515,7 +515,7 @@ function fires(promise, error, timeoutMs) { | |||
| 515 | 515 | const timeout = timeoutPromise(error, timeoutMs); | |
| 516 | 516 | return Promise.race([ | |
| 517 | 517 | onResolvedOrRejected(promise, () => timeout.clear()), | |
| 518 | - timeout | ||
| 518 | + timeout, | ||
| 519 | 519 | ]); | |
| 520 | 520 | } | |
| 521 | 521 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,7 @@ class TestTLSSocket extends net.Socket { | |||
| 44 | 44 | createClientHello() { | |
| 45 | 45 | const compressions = Buffer.from('0100', 'hex'); // null | |
| 46 | 46 | const msg = addHandshakeHeader(0x01, Buffer.concat([ | |
| 47 | - this.version, this.client_random, this.ciphers, compressions | ||
| 47 | + this.version, this.client_random, this.ciphers, compressions, | ||
| 48 | 48 | ])); | |
| 49 | 49 | this.emit('handshake', msg); | |
| 50 | 50 | return addRecordHeader(0x16, msg); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,7 +79,7 @@ const testData = [ | |||
| 79 | 79 | name: 'array', | |
| 80 | 80 | type: 'Array' | |
| 81 | 81 | }] | |
| 82 | - } | ||
| 82 | + }, | ||
| 83 | 83 | ] | |
| 84 | 84 | }], | |
| 85 | 85 | type: 'module', | |
@@ -121,7 +121,7 @@ const testData = [ | |||
| 121 | 121 | { 'version': 'v4.2.0', | |
| 122 | 122 | 'pr-url': 'https://github.com/nodejs/node/pull/3276', | |
| 123 | 123 | 'description': 'The `error` parameter can now be ' + | |
| 124 | - 'an arrow function.' } | ||
| 124 | + 'an arrow function.' }, | ||
| 125 | 125 | ] | |
| 126 | 126 | }, | |
| 127 | 127 | desc: '<p>Describe <code>Foobar II</code> in more detail ' + | |
@@ -149,11 +149,11 @@ const testData = [ | |||
| 149 | 149 | 'Describe <code>Something</code> in more detail here.</p>', | |
| 150 | 150 | type: 'module', | |
| 151 | 151 | displayName: 'Something' | |
| 152 | - } | ||
| 152 | + }, | ||
| 153 | 153 | ], | |
| 154 | 154 | type: 'module', | |
| 155 | 155 | displayName: 'Sample Markdown with YAML info' | |
| 156 | - } | ||
| 156 | + }, | ||
| 157 | 157 | ] | |
| 158 | 158 | } | |
| 159 | 159 | }, | |
@@ -170,61 +170,61 @@ const testData = [ | |||
| 170 | 170 | { | |
| 171 | 171 | name: 'fullName', | |
| 172 | 172 | textRaw: '`Fqhqwhgads.fullName`' | |
| 173 | - } | ||
| 173 | + }, | ||
| 174 | 174 | ], | |
| 175 | 175 | classMethods: [ | |
| 176 | 176 | { | |
| 177 | 177 | name: 'again', | |
| 178 | 178 | signatures: [ | |
| 179 | 179 | { | |
| 180 | 180 | params: [] | |
| 181 | - } | ||
| 181 | + }, | ||
| 182 | 182 | ], | |
| 183 | 183 | textRaw: 'Static method: `Fhqwhgads.again()`', | |
| 184 | 184 | type: 'classMethod' | |
| 185 | - } | ||
| 185 | + }, | ||
| 186 | 186 | ], | |
| 187 | 187 | classes: [ | |
| 188 | 188 | { | |
| 189 | 189 | textRaw: 'Class: `ComeOn`', | |
| 190 | 190 | type: 'class', | |
| 191 | 191 | name: 'ComeOn' | |
| 192 | - } | ||
| 192 | + }, | ||
| 193 | 193 | ], | |
| 194 | 194 | ctors: [ | |
| 195 | 195 | { | |
| 196 | 196 | name: 'Fhqwhgads', | |
| 197 | 197 | signatures: [ | |
| 198 | 198 | { | |
| 199 | 199 | params: [] | |
| 200 | - } | ||
| 200 | + }, | ||
| 201 | 201 | ], | |
| 202 | 202 | textRaw: 'Constructor: `new Fhqwhgads()`', | |
| 203 | 203 | type: 'ctor' | |
| 204 | - } | ||
| 204 | + }, | ||
| 205 | 205 | ], | |
| 206 | 206 | methods: [ | |
| 207 | 207 | { | |
| 208 | 208 | textRaw: '`everybody.to(limit)`', | |
| 209 | 209 | type: 'method', | |
| 210 | 210 | name: 'to', | |
| 211 | 211 | signatures: [{ params: [] }] | |
| 212 | - } | ||
| 212 | + }, | ||
| 213 | 213 | ], | |
| 214 | 214 | events: [ | |
| 215 | 215 | { | |
| 216 | 216 | textRaw: "Event: `'FHQWHfest'`", | |
| 217 | 217 | type: 'event', | |
| 218 | 218 | name: 'FHQWHfest', | |
| 219 | 219 | params: [] | |
| 220 | - } | ||
| 220 | + }, | ||
| 221 | 221 | ], | |
| 222 | 222 | type: 'module', | |
| 223 | 223 | displayName: 'Fhqwhgads' | |
| 224 | - } | ||
| 224 | + }, | ||
| 225 | 225 | ] | |
| 226 | 226 | } | |
| 227 | - } | ||
| 227 | + }, | ||
| 228 | 228 | ]; | |
| 229 | 229 | ||
| 230 | 230 | testData.forEach((item) => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments