| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6d32a16 commit 1a23eab
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -269,13 +269,15 @@ overrides: | |||
| 269 | 269 | - ./cluster.js | |
| 270 | 270 | - ./console.js | |
| 271 | 271 | - ./constants.js | |
| 272 | + - ./events.js | ||
| 272 | 273 | - ./fs.js | |
| 273 | 274 | - ./internal/assert.js | |
| 274 | 275 | - ./internal/child_process.js | |
| 275 | 276 | - ./internal/child_process/*.js | |
| 276 | 277 | - ./internal/cli_table.js | |
| 277 | 278 | - ./internal/cluster/*.js | |
| 278 | 279 | - ./internal/debugger/*.js | |
| 280 | + - ./internal/event_target.js | ||
| 279 | 281 | - ./internal/events/*.js | |
| 280 | 282 | - ./internal/fixed_queue.js | |
| 281 | 283 | - ./internal/freelist.js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,7 +66,7 @@ const { | |||
| 66 | 66 | ERR_INVALID_ARG_TYPE, | |
| 67 | 67 | ERR_INVALID_THIS, | |
| 68 | 68 | ERR_OUT_OF_RANGE, | |
| 69 | - ERR_UNHANDLED_ERROR | ||
| 69 | + ERR_UNHANDLED_ERROR, | ||
| 70 | 70 | }, | |
| 71 | 71 | genericNodeError, | |
| 72 | 72 | } = require('internal/errors'); | |
@@ -94,7 +94,7 @@ let EventEmitterAsyncResource; | |||
| 94 | 94 | function lazyEventEmitterAsyncResource() { | |
| 95 | 95 | if (EventEmitterAsyncResource === undefined) { | |
| 96 | 96 | const { | |
| 97 | - AsyncResource | ||
| 97 | + AsyncResource, | ||
| 98 | 98 | } = require('async_hooks'); | |
| 99 | 99 | ||
| 100 | 100 | const kEventEmitter = Symbol('kEventEmitter'); | |
@@ -231,7 +231,7 @@ ObjectDefineProperty(EventEmitter, 'captureRejections', { | |||
| 231 | 231 | ||
| 232 | 232 | EventEmitter.prototype[kCapture] = value; | |
| 233 | 233 | }, | |
| 234 | - enumerable: true | ||
| 234 | + enumerable: true, | ||
| 235 | 235 | }); | |
| 236 | 236 | ||
| 237 | 237 | ObjectDefineProperty(EventEmitter, 'EventEmitterAsyncResource', { | |
@@ -249,7 +249,7 @@ ObjectDefineProperty(EventEmitter.prototype, kCapture, { | |||
| 249 | 249 | __proto__: null, | |
| 250 | 250 | value: false, | |
| 251 | 251 | writable: true, | |
| 252 | - enumerable: false | ||
| 252 | + enumerable: false, | ||
| 253 | 253 | }); | |
| 254 | 254 | ||
| 255 | 255 | EventEmitter.prototype._events = undefined; | |
@@ -278,7 +278,7 @@ ObjectDefineProperty(EventEmitter, 'defaultMaxListeners', { | |||
| 278 | 278 | arg); | |
| 279 | 279 | } | |
| 280 | 280 | defaultMaxListeners = arg; | |
| 281 | - } | ||
| 281 | + }, | ||
| 282 | 282 | }); | |
| 283 | 283 | ||
| 284 | 284 | ObjectDefineProperties(EventEmitter, { | |
@@ -295,7 +295,7 @@ ObjectDefineProperties(EventEmitter, { | |||
| 295 | 295 | enumerable: false, | |
| 296 | 296 | configurable: false, | |
| 297 | 297 | writable: false, | |
| 298 | - } | ||
| 298 | + }, | ||
| 299 | 299 | }); | |
| 300 | 300 | ||
| 301 | 301 | /** | |
@@ -479,7 +479,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) { | |||
| 479 | 479 | ObjectDefineProperty(er, kEnhanceStackBeforeInspector, { | |
| 480 | 480 | __proto__: null, | |
| 481 | 481 | value: FunctionPrototypeBind(enhanceStackTrace, this, er, capture), | |
| 482 | - configurable: true | ||
| 482 | + configurable: true, | ||
| 483 | 483 | }); | |
| 484 | 484 | } catch { | |
| 485 | 485 | // 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); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ const { | |||
| 32 | 32 | ERR_EVENT_RECURSION, | |
| 33 | 33 | ERR_MISSING_ARGS, | |
| 34 | 34 | ERR_INVALID_THIS, | |
| 35 | - } | ||
| 35 | + }, | ||
| 36 | 36 | } = require('internal/errors'); | |
| 37 | 37 | const { validateAbortSignal, validateObject, validateString, validateInternalField } = require('internal/validators'); | |
| 38 | 38 | ||
@@ -75,7 +75,7 @@ const isTrustedSet = new SafeWeakSet(); | |||
| 75 | 75 | const isTrusted = ObjectGetOwnPropertyDescriptor({ | |
| 76 | 76 | get isTrusted() { | |
| 77 | 77 | return isTrustedSet.has(this); | |
| 78 | - } | ||
| 78 | + }, | ||
| 79 | 79 | }, 'isTrusted').get; | |
| 80 | 80 | ||
| 81 | 81 | const isTrustedDescriptor = { | |
@@ -150,7 +150,7 @@ class Event { | |||
| 150 | 150 | return name; | |
| 151 | 151 | ||
| 152 | 152 | const opts = ObjectAssign({}, options, { | |
| 153 | - depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth | ||
| 153 | + depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth, | ||
| 154 | 154 | }); | |
| 155 | 155 | ||
| 156 | 156 | return `${name} ${inspect({ | |
@@ -784,7 +784,7 @@ class EventTarget { | |||
| 784 | 784 | return name; | |
| 785 | 785 | ||
| 786 | 786 | const opts = ObjectAssign({}, options, { | |
| 787 | - depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth | ||
| 787 | + depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth, | ||
| 788 | 788 | }); | |
| 789 | 789 | ||
| 790 | 790 | return `${name} ${inspect({}, opts)}`; | |
@@ -801,7 +801,7 @@ ObjectDefineProperties(EventTarget.prototype, { | |||
| 801 | 801 | enumerable: false, | |
| 802 | 802 | configurable: true, | |
| 803 | 803 | value: 'EventTarget', | |
| 804 | - } | ||
| 804 | + }, | ||
| 805 | 805 | }); | |
| 806 | 806 | ||
| 807 | 807 | function initNodeEventTarget(self) { | |
@@ -1001,7 +1001,7 @@ function validateEventListenerOptions(options) { | |||
| 1001 | 1001 | passive: Boolean(options.passive), | |
| 1002 | 1002 | signal: options.signal, | |
| 1003 | 1003 | weak: options[kWeakHandler], | |
| 1004 | - isNodeStyleListener: Boolean(options[kIsNodeStyleListener]) | ||
| 1004 | + isNodeStyleListener: Boolean(options[kIsNodeStyleListener]), | ||
| 1005 | 1005 | }; | |
| 1006 | 1006 | } | |
| 1007 | 1007 | ||
@@ -1089,7 +1089,7 @@ function defineEventHandler(emitter, name, event = name) { | |||
| 1089 | 1089 | get, | |
| 1090 | 1090 | set, | |
| 1091 | 1091 | configurable: true, | |
| 1092 | - enumerable: true | ||
| 1092 | + enumerable: true, | ||
| 1093 | 1093 | }); | |
| 1094 | 1094 | } | |
| 1095 | 1095 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments