GeezerVison is showing github.com — events: add trailing commas in source files · nodejs/node@b08687f
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -257,13 +257,15 @@ overrides: | 257 | 257 | - ./cluster.js | 258 | 258 | - ./console.js | 259 | 259 | - ./constants.js | | 260 | + - ./events.js | 260 | 261 | - ./fs.js | 261 | 262 | - ./internal/assert.js | 262 | 263 | - ./internal/child_process.js | 263 | 264 | - ./internal/child_process/*.js | 264 | 265 | - ./internal/cli_table.js | 265 | 266 | - ./internal/cluster/*.js | 266 | 267 | - ./internal/debugger/*.js | | 268 | + - ./internal/event_target.js | 267 | 269 | - ./internal/events/*.js | 268 | 270 | - ./internal/fixed_queue.js | 269 | 271 | - ./internal/freelist.js | |
Collapse file Copy file name to clipboardExpand all lines: lib/events.js +8-8Lines changed: 8 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -67,7 +67,7 @@ const { | 67 | 67 | ERR_INVALID_ARG_TYPE, | 68 | 68 | ERR_INVALID_THIS, | 69 | 69 | ERR_OUT_OF_RANGE, | 70 | | - ERR_UNHANDLED_ERROR | | 70 | + ERR_UNHANDLED_ERROR, | 71 | 71 | }, | 72 | 72 | genericNodeError, | 73 | 73 | } = require('internal/errors'); | @@ -95,7 +95,7 @@ let EventEmitterAsyncResource; | 95 | 95 | function lazyEventEmitterAsyncResource() { | 96 | 96 | if (EventEmitterAsyncResource === undefined) { | 97 | 97 | const { | 98 | | - AsyncResource | | 98 | + AsyncResource, | 99 | 99 | } = require('async_hooks'); | 100 | 100 |
| 101 | 101 | const kEventEmitter = Symbol('kEventEmitter'); | @@ -232,7 +232,7 @@ ObjectDefineProperty(EventEmitter, 'captureRejections', { | 232 | 232 |
| 233 | 233 | EventEmitter.prototype[kCapture] = value; | 234 | 234 | }, | 235 | | - enumerable: true | | 235 | + enumerable: true, | 236 | 236 | }); | 237 | 237 |
| 238 | 238 | ObjectDefineProperty(EventEmitter, 'EventEmitterAsyncResource', { | @@ -250,7 +250,7 @@ ObjectDefineProperty(EventEmitter.prototype, kCapture, { | 250 | 250 | __proto__: null, | 251 | 251 | value: false, | 252 | 252 | writable: true, | 253 | | - enumerable: false | | 253 | + enumerable: false, | 254 | 254 | }); | 255 | 255 |
| 256 | 256 | EventEmitter.prototype._events = undefined; | @@ -279,7 +279,7 @@ ObjectDefineProperty(EventEmitter, 'defaultMaxListeners', { | 279 | 279 | arg); | 280 | 280 | } | 281 | 281 | defaultMaxListeners = arg; | 282 | | - } | | 282 | + }, | 283 | 283 | }); | 284 | 284 |
| 285 | 285 | ObjectDefineProperties(EventEmitter, { | @@ -296,7 +296,7 @@ ObjectDefineProperties(EventEmitter, { | 296 | 296 | enumerable: false, | 297 | 297 | configurable: false, | 298 | 298 | writable: false, | 299 | | - } | | 299 | + }, | 300 | 300 | }); | 301 | 301 |
| 302 | 302 | /** | @@ -480,7 +480,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) { | 480 | 480 | ObjectDefineProperty(er, kEnhanceStackBeforeInspector, { | 481 | 481 | __proto__: null, | 482 | 482 | value: FunctionPrototypeBind(enhanceStackTrace, this, er, capture), | 483 | | - configurable: true | | 483 | + configurable: true, | 484 | 484 | }); | 485 | 485 | } catch { | 486 | 486 | // Continue regardless of error. | @@ -1092,7 +1092,7 @@ function on(emitter, event, options = kEmptyObject) { | 1092 | 1092 |
| 1093 | 1093 | [SymbolAsyncIterator]() { | 1094 | 1094 | return this; | 1095 | | - } | | 1095 | + }, | 1096 | 1096 | }, AsyncIteratorPrototype); | 1097 | 1097 |
| 1098 | 1098 | eventTargetAgnosticAddListener(emitter, event, eventHandler); | |
|