diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 93f602681bc286..d12f933be18ec7 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -251,10 +251,8 @@ globals: primordials: false overrides: - files: - - ./*/promises.js - - ./_stream_*.js - - ./_tls_common.js - - ./assert/*.js + - ./*/*.js + - ./_*.js - ./child_process.js - ./cluster.js - ./console.js @@ -276,7 +274,7 @@ overrides: - ./internal/js_stream_socket.js - ./internal/mime.js - ./internal/modules/*.js - - ./internal/per_context/messageport.js + - ./internal/per_context/*.js - ./internal/perf/*.js - ./internal/policy/*.js - ./internal/priority_queue.js @@ -285,7 +283,7 @@ overrides: - ./internal/readme.md - ./internal/repl.js - ./internal/repl/*.js - - ./internal/source_map/prepare_stack_trace.js + - ./internal/source_map/*.js - ./internal/streams/*.js - ./internal/structured_clone.js - ./internal/test/*.js @@ -298,15 +296,12 @@ overrides: - ./internal/webidl.js - ./internal/webstreams/*.js - ./module.js - - ./path/*.js - ./process.js - ./punycode.js - ./repl.js - - ./stream/*.js - ./sys.js - ./test.js - ./tls.js - ./url.js - - ./util/*.js rules: comma-dangle: [error, always-multiline] diff --git a/lib/_http_agent.js b/lib/_http_agent.js index 3cdb48dc6b52eb..04c75218c03192 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -244,7 +244,7 @@ Agent.prototype.addRequest = function addRequest(req, options, port/* legacy */, __proto__: null, host: options, port, - localAddress + localAddress, }; } @@ -533,5 +533,5 @@ function asyncResetHandle(socket) { module.exports = { Agent, - globalAgent: new Agent() + globalAgent: new Agent(), }; diff --git a/lib/_http_client.js b/lib/_http_client.js index 3324cf69f1f074..cd161fee62f5f4 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -58,7 +58,7 @@ const { const { kUniqueHeaders, parseUniqueHeadersOption, - OutgoingMessage + OutgoingMessage, } = require('_http_outgoing'); const Agent = require('_http_agent'); const { Buffer } = require('buffer'); @@ -78,7 +78,7 @@ const { ERR_INVALID_ARG_TYPE, ERR_INVALID_HTTP_TOKEN, ERR_INVALID_PROTOCOL, - ERR_UNESCAPED_CHARACTERS + ERR_UNESCAPED_CHARACTERS, } = codes; const { validateInteger, @@ -87,7 +87,7 @@ const { const { getTimerDuration } = require('internal/timers'); const { DTRACE_HTTP_CLIENT_REQUEST, - DTRACE_HTTP_CLIENT_RESPONSE + DTRACE_HTTP_CLIENT_RESPONSE, } = require('internal/dtrace'); const { @@ -650,7 +650,7 @@ function parserOnIncomingClient(res, shouldKeepAlive) { httpVersionMajor: res.httpVersionMajor, httpVersionMinor: res.httpVersionMinor, headers: res.headers, - rawHeaders: res.rawHeaders + rawHeaders: res.rawHeaders, }); return 1; // Skip body but don't treat as Upgrade. @@ -977,5 +977,5 @@ ClientRequest.prototype.clearTimeout = function clearTimeout(cb) { }; module.exports = { - ClientRequest + ClientRequest, }; diff --git a/lib/_http_common.js b/lib/_http_common.js index 017bf4fdba4151..ebd89049927cef 100644 --- a/lib/_http_common.js +++ b/lib/_http_common.js @@ -37,7 +37,7 @@ const incoming = require('_http_incoming'); const { IncomingMessage, readStart, - readStop + readStop, } = incoming; const kIncomingMessage = Symbol('IncomingMessage'); diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js index 45477dd3e132d3..e45ae8190e2215 100644 --- a/lib/_http_incoming.js +++ b/lib/_http_incoming.js @@ -27,7 +27,7 @@ const { StringPrototypeCharCodeAt, StringPrototypeSlice, StringPrototypeToLowerCase, - Symbol + Symbol, } = primordials; const { Readable, finished } = require('stream'); @@ -55,7 +55,7 @@ function IncomingMessage(socket) { if (socket) { streamOptions = { - highWaterMark: socket.readableHighWaterMark + highWaterMark: socket.readableHighWaterMark, }; } @@ -104,7 +104,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'connection', { }, set: function(val) { this.socket = val; - } + }, }); ObjectDefineProperty(IncomingMessage.prototype, 'headers', { @@ -124,7 +124,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'headers', { }, set: function(val) { this[kHeaders] = val; - } + }, }); ObjectDefineProperty(IncomingMessage.prototype, 'headersDistinct', { @@ -144,7 +144,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'headersDistinct', { }, set: function(val) { this[kHeadersDistinct] = val; - } + }, }); ObjectDefineProperty(IncomingMessage.prototype, 'trailers', { @@ -164,7 +164,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'trailers', { }, set: function(val) { this[kTrailers] = val; - } + }, }); ObjectDefineProperty(IncomingMessage.prototype, 'trailersDistinct', { @@ -184,7 +184,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'trailersDistinct', { }, set: function(val) { this[kTrailersDistinct] = val; - } + }, }); IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) { @@ -452,5 +452,5 @@ function onError(self, error, cb) { module.exports = { IncomingMessage, readStart, - readStop + readStop, }; diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 75de2321aa32b6..551787e792d0bf 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -53,7 +53,7 @@ const { } = require('_http_common'); const { defaultTriggerAsyncIdScope, - symbols: { async_id_symbol } + symbols: { async_id_symbol }, } = require('internal/async_hooks'); const { codes: { @@ -70,9 +70,9 @@ const { ERR_STREAM_ALREADY_FINISHED, ERR_STREAM_WRITE_AFTER_END, ERR_STREAM_NULL_VALUES, - ERR_STREAM_DESTROYED + ERR_STREAM_DESTROYED, }, - hideStackFrames + hideStackFrames, } = require('internal/errors'); const { validateString } = require('internal/validators'); const { isUint8Array } = require('internal/util/types'); @@ -177,28 +177,28 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'writableFinished', { this.outputSize === 0 && (!this.socket || this.socket.writableLength === 0) ); - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, 'writableObjectMode', { __proto__: null, get() { return false; - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, 'writableLength', { __proto__: null, get() { return this.outputSize + (this.socket ? this.socket.writableLength : 0); - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, 'writableHighWaterMark', { __proto__: null, get() { return this.socket ? this.socket.writableHighWaterMark : HIGH_WATER_MARK; - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, 'writableCorked', { @@ -206,7 +206,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'writableCorked', { get() { const corked = this.socket ? this.socket.writableCorked : 0; return corked + this[kCorked]; - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, '_headers', { @@ -227,7 +227,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, '_headers', { headers[StringPrototypeToLowerCase(name)] = [name, val[name]]; } } - }, 'OutgoingMessage.prototype._headers is deprecated', 'DEP0066') + }, 'OutgoingMessage.prototype._headers is deprecated', 'DEP0066'), }); ObjectDefineProperty(OutgoingMessage.prototype, 'connection', { @@ -237,7 +237,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'connection', { }, set: function(val) { this.socket = val; - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, '_headerNames', { @@ -272,7 +272,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, '_headerNames', { header[0] = val[keys[i]]; } } - }, 'OutgoingMessage.prototype._headerNames is deprecated', 'DEP0066') + }, 'OutgoingMessage.prototype._headerNames is deprecated', 'DEP0066'), }); @@ -368,7 +368,7 @@ OutgoingMessage.prototype._send = function _send(data, encoding, callback, byteL this.outputData.unshift({ data: header, encoding: 'latin1', - callback: null + callback: null, }); this.outputSize += header.length; this._onPendingData(header.length); @@ -419,7 +419,7 @@ function _storeHeader(firstLine, headers) { date: false, expect: false, trailer: false, - header: firstLine + header: firstLine, }; if (headers) { @@ -806,19 +806,19 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'headersSent', { __proto__: null, configurable: true, enumerable: true, - get: function() { return !!this._header; } + get: function() { return !!this._header; }, }); ObjectDefineProperty(OutgoingMessage.prototype, 'writableEnded', { __proto__: null, - get: function() { return this.finished; } + get: function() { return this.finished; }, }); ObjectDefineProperty(OutgoingMessage.prototype, 'writableNeedDrain', { __proto__: null, get: function() { return !this.destroyed && !this.finished && this[kNeedDrain]; - } + }, }); const crlf_buf = Buffer.from('\r\n'); @@ -1171,5 +1171,5 @@ module.exports = { parseUniqueHeadersOption, validateHeaderName, validateHeaderValue, - OutgoingMessage + OutgoingMessage, }; diff --git a/lib/_http_server.js b/lib/_http_server.js index d70ce51d8fced4..c8b43a9301f1f2 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -51,7 +51,7 @@ const { ConnectionsList } = internalBinding('http_parser'); const { kUniqueHeaders, parseUniqueHeadersOption, - OutgoingMessage + OutgoingMessage, } = require('_http_outgoing'); const { kOutHeaders, @@ -63,12 +63,12 @@ const { } = require('internal/http'); const { defaultTriggerAsyncIdScope, - getOrSetAsyncId + getOrSetAsyncId, } = require('internal/async_hooks'); const { IncomingMessage } = require('_http_incoming'); const { connResetException, - codes + codes, } = require('internal/errors'); const { ERR_HTTP_REQUEST_TIMEOUT, @@ -77,18 +77,18 @@ const { ERR_HTTP_SOCKET_ENCODING, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, - ERR_INVALID_CHAR + ERR_INVALID_CHAR, } = codes; const { validateInteger, validateBoolean, validateLinkHeaderValue, - validateObject + validateObject, } = require('internal/validators'); const Buffer = require('buffer').Buffer; const { DTRACE_HTTP_SERVER_REQUEST, - DTRACE_HTTP_SERVER_RESPONSE + DTRACE_HTTP_SERVER_RESPONSE, } = require('internal/dtrace'); const { setInterval, clearInterval } = require('timers'); let debug = require('internal/util/debuglog').debuglog('http', (fn) => { @@ -171,7 +171,7 @@ const STATUS_CODES = { 508: 'Loop Detected', // RFC 5842 7.2 509: 'Bandwidth Limit Exceeded', 510: 'Not Extended', // RFC 2774 7 - 511: 'Network Authentication Required' // RFC 6585 6 + 511: 'Network Authentication Required', // RFC 6585 6 }; const kOnExecute = HTTPParser.kOnExecute | 0; @@ -658,7 +658,7 @@ function connectionListenerInternal(server, socket) { // sent to the client. outgoingData: 0, requestsCount: 0, - keepAliveTimeoutSet: false + keepAliveTimeoutSet: false, }; state.onData = socketOnData.bind(undefined, server, socket, parser, state); @@ -917,7 +917,7 @@ function resOnFinish(req, res, socket, state, server) { request: req, response: res, socket, - server + server, }); } @@ -1010,7 +1010,7 @@ function parserOnIncoming(server, socket, state, req, keepAlive) { request: req, response: res, socket, - server + server, }); } @@ -1143,5 +1143,5 @@ module.exports = { setupConnectionsTracking, storeHTTPOptions, _connectionListener: connectionListener, - kServerResponse + kServerResponse, }; diff --git a/lib/internal/abort_controller.js b/lib/internal/abort_controller.js index 0b4d0fe359f632..5fb7299818e04b 100644 --- a/lib/internal/abort_controller.js +++ b/lib/internal/abort_controller.js @@ -37,7 +37,7 @@ const { ERR_ILLEGAL_CONSTRUCTOR, ERR_INVALID_ARG_TYPE, ERR_INVALID_THIS, - } + }, } = require('internal/errors'); const { @@ -58,7 +58,7 @@ const { const { messaging_deserialize_symbol: kDeserialize, messaging_transfer_symbol: kTransfer, - messaging_transfer_list_symbol: kTransferList + messaging_transfer_list_symbol: kTransferList, } = internalBinding('symbols'); let _MessageChannel; @@ -93,7 +93,7 @@ function customInspect(self, obj, depth, options) { return self; const opts = ObjectAssign({}, options, { - depth: options.depth === null ? null : options.depth - 1 + depth: options.depth === null ? null : options.depth - 1, }); return `${self.constructor.name} ${inspect(obj, opts)}`; @@ -158,7 +158,7 @@ class AbortSignal extends EventTarget { [customInspectSymbol](depth, options) { return customInspect(this, { - aborted: this.aborted + aborted: this.aborted, }, depth, options); } @@ -309,7 +309,7 @@ function abortSignal(signal, reason) { signal[kAborted] = true; signal[kReason] = reason; const event = new Event('abort', { - [kTrustEvent]: true + [kTrustEvent]: true, }); signal.dispatchEvent(event); } @@ -346,7 +346,7 @@ class AbortController { [customInspectSymbol](depth, options) { return customInspect(this, { - signal: this.signal + signal: this.signal, }, depth, options); } diff --git a/lib/internal/async_hooks.js b/lib/internal/async_hooks.js index 6cc01d94adbe12..a25c772f21b491 100644 --- a/lib/internal/async_hooks.js +++ b/lib/internal/async_hooks.js @@ -40,7 +40,7 @@ const { setCallbackTrampoline } = async_wrap; const { async_hook_fields, async_id_fields, - execution_async_resources + execution_async_resources, } = async_wrap; // Store the pair executionAsyncId and triggerAsyncId in a AliasedFloat64Array // in Environment::AsyncHooks::async_ids_stack_ which tracks the resource @@ -76,7 +76,7 @@ const active_hooks = { // Keep track of the field counts held in active_hooks.tmp_array. Because the // async_hook_fields can't be reassigned, store each uint32 in an array that // is written back to async_hook_fields when active_hooks.array is restored. - tmp_fields: null + tmp_fields: null, }; const { registerDestroyHook } = async_wrap; @@ -256,7 +256,7 @@ function emitHookFactory(symbol, name) { // Set the name property of the function as it looks good in the stack trace. ObjectDefineProperty(fn, 'name', { __proto__: null, - value: name + value: name, }); return fn; } @@ -386,7 +386,7 @@ function updatePromiseHookMode() { init: initHook, before: promiseBeforeHook, after: promiseAfterHook, - settled: promiseResolveHooksExist() ? promiseResolveHook : undefined + settled: promiseResolveHooksExist() ? promiseResolveHook : undefined, }); } @@ -585,10 +585,10 @@ module.exports = { symbols: { async_id_symbol, trigger_async_id_symbol, init_symbol, before_symbol, after_symbol, destroy_symbol, - promise_resolve_symbol, owner_symbol + promise_resolve_symbol, owner_symbol, }, constants: { - kInit, kBefore, kAfter, kDestroy, kTotals, kPromiseResolve + kInit, kBefore, kAfter, kDestroy, kTotals, kPromiseResolve, }, enableHooks, disableHooks, @@ -619,9 +619,9 @@ module.exports = { before: emitBeforeNative, after: emitAfterNative, destroy: emitDestroyNative, - promise_resolve: emitPromiseResolveNative + promise_resolve: emitPromiseResolveNative, }, asyncWrap: { Providers: async_wrap.Providers, - } + }, }; diff --git a/lib/internal/blob.js b/lib/internal/blob.js index 82a708a88db875..a25f6cf7df2387 100644 --- a/lib/internal/blob.js +++ b/lib/internal/blob.js @@ -57,7 +57,7 @@ const { ERR_INVALID_ARG_VALUE, ERR_INVALID_THIS, ERR_BUFFER_TOO_LARGE, - } + }, } = require('internal/errors'); const { @@ -181,7 +181,7 @@ class Blob { const opts = { ...options, - depth: options.depth == null ? null : options.depth - 1 + depth: options.depth == null ? null : options.depth - 1, }; return `Blob ${inspect({ @@ -196,7 +196,7 @@ class Blob { const length = this[kLength]; return { data: { handle, type, length }, - deserializeInfo: 'internal/blob:ClonedBlob' + deserializeInfo: 'internal/blob:ClonedBlob', }; } @@ -342,7 +342,7 @@ class Blob { controller.enqueue(new Uint8Array(this[kState], this[kIndex], kMaxChunkSize)); this[kIndex] += kMaxChunkSize; } - } + }, }); } } diff --git a/lib/internal/blocklist.js b/lib/internal/blocklist.js index a73f3f19de07ff..c0bce00321fc8b 100644 --- a/lib/internal/blocklist.js +++ b/lib/internal/blocklist.js @@ -3,7 +3,7 @@ const { Boolean, ObjectSetPrototypeOf, - Symbol + Symbol, } = primordials; const { @@ -49,11 +49,11 @@ class BlockList extends JSTransferable { const opts = { ...options, - depth: options.depth == null ? null : options.depth - 1 + depth: options.depth == null ? null : options.depth - 1, }; return `BlockList ${inspect({ - rules: this.rules + rules: this.rules, }, opts)}`; } diff --git a/lib/internal/buffer.js b/lib/internal/buffer.js index 7b8331f47514c4..fbe9de249348b3 100644 --- a/lib/internal/buffer.js +++ b/lib/internal/buffer.js @@ -12,7 +12,7 @@ const { const { ERR_BUFFER_OUT_OF_BOUNDS, ERR_INVALID_ARG_TYPE, - ERR_OUT_OF_RANGE + ERR_OUT_OF_RANGE, } = require('internal/errors').codes; const { validateNumber } = require('internal/validators'); const { @@ -30,7 +30,7 @@ const { hexWrite, ucs2Write, utf8Write, - getZeroFillToggle + getZeroFillToggle, } = internalBinding('buffer'); const { @@ -1082,5 +1082,5 @@ module.exports = { createUnsafeBuffer, readUInt16BE, readUInt32BE, - reconnectZeroFillToggle + reconnectZeroFillToggle, }; diff --git a/lib/internal/constants.js b/lib/internal/constants.js index bf539a9f37d134..8d7204f6cb48f7 100644 --- a/lib/internal/constants.js +++ b/lib/internal/constants.js @@ -52,5 +52,5 @@ module.exports = { CHAR_0: 48, /* 0 */ CHAR_9: 57, /* 9 */ - EOL: isWindows ? '\r\n' : '\n' + EOL: isWindows ? '\r\n' : '\n', }; diff --git a/lib/internal/dgram.js b/lib/internal/dgram.js index f27baf5e0ef60b..f602f39614f690 100644 --- a/lib/internal/dgram.js +++ b/lib/internal/dgram.js @@ -88,5 +88,5 @@ function _createSocketHandle(address, port, addressType, fd, flags) { module.exports = { kStateSymbol, _createSocketHandle, - newHandle + newHandle, }; diff --git a/lib/internal/dtrace.js b/lib/internal/dtrace.js index 8eb1df7807fbcd..1ecd9570e99cc0 100644 --- a/lib/internal/dtrace.js +++ b/lib/internal/dtrace.js @@ -8,7 +8,7 @@ const { DTRACE_HTTP_SERVER_REQUEST = () => {}, DTRACE_HTTP_SERVER_RESPONSE = () => {}, DTRACE_NET_SERVER_CONNECTION = () => {}, - DTRACE_NET_STREAM_END = () => {} + DTRACE_NET_STREAM_END = () => {}, } = (config.hasDtrace ? internalBinding('dtrace') : {}); module.exports = { @@ -17,5 +17,5 @@ module.exports = { DTRACE_HTTP_SERVER_REQUEST, DTRACE_HTTP_SERVER_RESPONSE, DTRACE_NET_SERVER_CONNECTION, - DTRACE_NET_STREAM_END + DTRACE_NET_STREAM_END, }; diff --git a/lib/internal/encoding.js b/lib/internal/encoding.js index aae644ce97766c..246b18917afdb5 100644 --- a/lib/internal/encoding.js +++ b/lib/internal/encoding.js @@ -22,7 +22,7 @@ const { ERR_ENCODING_NOT_SUPPORTED, ERR_INVALID_ARG_TYPE, ERR_INVALID_THIS, - ERR_NO_ICU + ERR_NO_ICU, } = require('internal/errors').codes; const kHandle = Symbol('handle'); const kFlags = Symbol('flags'); @@ -43,7 +43,7 @@ const { const { isAnyArrayBuffer, isArrayBufferView, - isUint8Array + isUint8Array, } = require('internal/util/types'); const { @@ -356,7 +356,7 @@ class TextEncoder { return this; const ctor = getConstructorOf(this); const obj = ObjectCreate({ - constructor: ctor === null ? TextEncoder : ctor + constructor: ctor === null ? TextEncoder : ctor, }); obj.encoding = this.encoding; // Lazy to avoid circular dependency @@ -587,7 +587,7 @@ const sharedProperties = ObjectGetOwnPropertyDescriptors({ // Lazy to avoid circular dependency const { inspect } = require('internal/util/inspect'); return `${constructor.name} ${inspect(obj)}`; - } + }, }); const propertiesValues = ObjectValues(sharedProperties); for (let i = 0; i < propertiesValues.length; i++) { @@ -603,12 +603,12 @@ ObjectDefineProperties(TextDecoder.prototype, { [SymbolToStringTag]: { __proto__: null, configurable: true, - value: 'TextDecoder' - } + value: 'TextDecoder', + }, }); module.exports = { getEncodingFromLabel, TextDecoder, - TextEncoder + TextEncoder, }; diff --git a/lib/internal/error_serdes.js b/lib/internal/error_serdes.js index 68576c1c24d7a7..81eebfcbd56e3e 100644 --- a/lib/internal/error_serdes.js +++ b/lib/internal/error_serdes.js @@ -28,7 +28,7 @@ const kSerializedObject = 1; const kInspectedError = 2; const errors = { - Error, TypeError, RangeError, URIError, SyntaxError, ReferenceError, EvalError + Error, TypeError, RangeError, URIError, SyntaxError, ReferenceError, EvalError, }; const errorConstructorNames = new SafeSet(ObjectKeys(errors)); @@ -71,7 +71,7 @@ function GetConstructors(object) { if (desc && desc.value) { ObjectDefineProperty(constructors, constructors.length, { __proto__: null, - value: desc.value, enumerable: true + value: desc.value, enumerable: true, }); } } @@ -104,7 +104,7 @@ function serializeError(error) { if (errorConstructorNames.has(name)) { const serialized = serialize({ constructor: name, - properties: TryGetAllProperties(error) + properties: TryGetAllProperties(error), }); return Buffer.concat([Buffer.from([kSerializedError]), serialized]); } @@ -133,7 +133,7 @@ function deserializeError(error) { ObjectDefineProperty(properties, SymbolToStringTag, { __proto__: null, value: { value: 'Error', configurable: true }, - enumerable: true + enumerable: true, }); return ObjectCreate(ctor.prototype, properties); } diff --git a/lib/internal/errors.js b/lib/internal/errors.js index b437b1f03731c6..390b58b2d05c0a 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -321,7 +321,7 @@ class SystemError extends Error { lazyBuffer().from(value.toString()) : undefined; }, enumerable: true, - configurable: true + configurable: true, }); } @@ -337,7 +337,7 @@ class SystemError extends Error { lazyBuffer().from(value.toString()) : undefined; }, enumerable: true, - configurable: true + configurable: true, }); } } @@ -350,7 +350,7 @@ class SystemError extends Error { return lazyInternalUtilInspect().inspect(this, { ...ctx, getters: true, - customInspect: false + customInspect: false, }); } } @@ -796,8 +796,8 @@ const fatalExceptionStackEnhancers = { const { inspect, inspectDefaultOptions: { - colors: defaultColors - } + colors: defaultColors, + }, } = lazyInternalUtilInspect(); const colors = useColors && ((internalBinding('util').guessHandleType(2) === 'TTY' && @@ -807,18 +807,18 @@ const fatalExceptionStackEnhancers = { return inspect(error, { colors, customInspect: false, - depth: MathMax(inspect.defaultOptions.depth, 5) + depth: MathMax(inspect.defaultOptions.depth, 5), }); } catch { return originalStack; } - } + }, }; const { privateSymbols: { arrow_message_private_symbol, - } + }, } = internalBinding('util'); // Ensures the printed error line is from user code. function setArrowMessage(err, arrowMessage) { diff --git a/lib/internal/event_target.js b/lib/internal/event_target.js index 0dd98aa580e821..3f0f3880bef247 100644 --- a/lib/internal/event_target.js +++ b/lib/internal/event_target.js @@ -32,7 +32,7 @@ const { ERR_EVENT_RECURSION, ERR_MISSING_ARGS, ERR_INVALID_THIS, - } + }, } = require('internal/errors'); const { validateObject, validateString } = require('internal/validators'); @@ -75,7 +75,7 @@ const isTrustedSet = new SafeWeakSet(); const isTrusted = ObjectGetOwnPropertyDescriptor({ get isTrusted() { return isTrustedSet.has(this); - } + }, }, 'isTrusted').get; const isTrustedDescriptor = { @@ -133,7 +133,7 @@ class Event { return name; const opts = ObjectAssign({}, options, { - depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth + depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth, }); return `${name} ${inspect({ @@ -763,7 +763,7 @@ class EventTarget { return name; const opts = ObjectAssign({}, options, { - depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth + depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth, }); return `${name} ${inspect({}, opts)}`; @@ -780,7 +780,7 @@ ObjectDefineProperties(EventTarget.prototype, { enumerable: false, configurable: true, value: 'EventTarget', - } + }, }); function initNodeEventTarget(self) { @@ -980,7 +980,7 @@ function validateEventListenerOptions(options) { passive: Boolean(options.passive), signal: options.signal, weak: options[kWeakHandler], - isNodeStyleListener: Boolean(options[kIsNodeStyleListener]) + isNodeStyleListener: Boolean(options[kIsNodeStyleListener]), }; } @@ -1056,7 +1056,7 @@ function defineEventHandler(emitter, name) { this[kHandlers].set(name, wrappedHandler); }, configurable: true, - enumerable: true + enumerable: true, }); } diff --git a/lib/internal/file.js b/lib/internal/file.js index df9966532cdc24..8ef858d67e2d9c 100644 --- a/lib/internal/file.js +++ b/lib/internal/file.js @@ -105,7 +105,7 @@ ObjectDefineProperties(File.prototype, { __proto__: null, configurable: true, value: 'File', - } + }, }); module.exports = { diff --git a/lib/internal/freeze_intrinsics.js b/lib/internal/freeze_intrinsics.js index 0f486ce9061782..72ba32589338b0 100644 --- a/lib/internal/freeze_intrinsics.js +++ b/lib/internal/freeze_intrinsics.js @@ -131,7 +131,7 @@ const { Atomics, Intl, SharedArrayBuffer, - WebAssembly + WebAssembly, } = globalThis; module.exports = function() { @@ -143,7 +143,7 @@ module.exports = function() { clearTimeout, setImmediate, setInterval, - setTimeout + setTimeout, } = require('timers'); const intrinsicPrototypes = [ @@ -508,7 +508,7 @@ module.exports = function() { value: newValue, writable: true, enumerable: true, - configurable: true + configurable: true, }); } } @@ -518,7 +518,7 @@ module.exports = function() { get: getter, set: setter, enumerable: desc.enumerable, - configurable: desc.configurable + configurable: desc.configurable, }); } } diff --git a/lib/internal/heap_utils.js b/lib/internal/heap_utils.js index 126fe3f7e46a0c..dc80baabb766cf 100644 --- a/lib/internal/heap_utils.js +++ b/lib/internal/heap_utils.js @@ -1,6 +1,6 @@ 'use strict'; const { - Symbol + Symbol, } = primordials; const { kUpdateTimer, @@ -37,5 +37,5 @@ class HeapSnapshotStream extends Readable { } module.exports = { - HeapSnapshotStream + HeapSnapshotStream, }; diff --git a/lib/internal/histogram.js b/lib/internal/histogram.js index 92a679e8f3a634..5520fc6e1b3dc4 100644 --- a/lib/internal/histogram.js +++ b/lib/internal/histogram.js @@ -12,7 +12,7 @@ const { } = primordials; const { - Histogram: _Histogram + Histogram: _Histogram, } = internalBinding('performance'); const { @@ -64,7 +64,7 @@ class Histogram { const opts = { ...options, - depth: options.depth == null ? null : options.depth - 1 + depth: options.depth == null ? null : options.depth - 1, }; return `Histogram ${inspect({ @@ -245,7 +245,7 @@ class Histogram { const handle = this[kHandle]; return { data: { handle }, - deserializeInfo: 'internal/histogram:internalHistogram' + deserializeInfo: 'internal/histogram:internalHistogram', }; } @@ -261,7 +261,7 @@ class Histogram { mean: this.mean, exceeds: this.exceeds, stddev: this.stddev, - percentiles: ObjectFromEntries(MapPrototypeEntries(this.percentiles)) + percentiles: ObjectFromEntries(MapPrototypeEntries(this.percentiles)), }; } } @@ -316,7 +316,7 @@ class RecordableHistogram extends Histogram { const handle = this[kHandle]; return { data: { handle }, - deserializeInfo: 'internal/histogram:internalRecordableHistogram' + deserializeInfo: 'internal/histogram:internalRecordableHistogram', }; } diff --git a/lib/internal/inspector_async_hook.js b/lib/internal/inspector_async_hook.js index bd3aa635051c5b..d7bb663431e33a 100644 --- a/lib/internal/inspector_async_hook.js +++ b/lib/internal/inspector_async_hook.js @@ -72,5 +72,5 @@ function disable() { module.exports = { enable, - disable + disable, }; diff --git a/lib/internal/linkedlist.js b/lib/internal/linkedlist.js index 9257270ebd86a5..c756e18bc45863 100644 --- a/lib/internal/linkedlist.js +++ b/lib/internal/linkedlist.js @@ -51,5 +51,5 @@ module.exports = { peek, remove, append, - isEmpty + isEmpty, }; diff --git a/lib/internal/net.js b/lib/internal/net.js index 35e2a03706a675..786b03f2c34d8c 100644 --- a/lib/internal/net.js +++ b/lib/internal/net.js @@ -72,5 +72,5 @@ module.exports = { isIPv4, isIPv6, makeSyncWrite, - normalizedArgsSymbol: Symbol('normalizedArgs') + normalizedArgsSymbol: Symbol('normalizedArgs'), }; diff --git a/lib/internal/options.js b/lib/internal/options.js index 4d92ad681a1207..effe3249888efd 100644 --- a/lib/internal/options.js +++ b/lib/internal/options.js @@ -74,5 +74,5 @@ module.exports = { getOptionValue, getAllowUnauthorized, getEmbedderOptions, - refreshOptions + refreshOptions, }; diff --git a/lib/internal/per_context/domexception.js b/lib/internal/per_context/domexception.js index a0814894524a23..14b496df8eea87 100644 --- a/lib/internal/per_context/domexception.js +++ b/lib/internal/per_context/domexception.js @@ -56,7 +56,7 @@ class DOMException { const { name } = options; internalsMap.set(this, { message: `${message}`, - name: `${name}` + name: `${name}`, }); if ('cause' in options) { @@ -71,7 +71,7 @@ class DOMException { } else { internalsMap.set(this, { message: `${message}`, - name: `${options}` + name: `${options}`, }); } } @@ -112,7 +112,7 @@ ObjectDefineProperties(DOMException.prototype, { [SymbolToStringTag]: { __proto__: null, configurable: true, value: 'DOMException' }, name: { __proto__: null, enumerable: true, configurable: true }, message: { __proto__: null, enumerable: true, configurable: true }, - code: { __proto__: null, enumerable: true, configurable: true } + code: { __proto__: null, enumerable: true, configurable: true }, }); for (const { 0: name, 1: codeName, 2: value } of [ diff --git a/lib/internal/per_context/primordials.js b/lib/internal/per_context/primordials.js index 047398465ec0cd..496383a76825ce 100644 --- a/lib/internal/per_context/primordials.js +++ b/lib/internal/per_context/primordials.js @@ -61,13 +61,13 @@ function copyAccessor(dest, prefix, key, { enumerable, get, set }) { ReflectDefineProperty(dest, `${prefix}Get${key}`, { __proto__: null, value: uncurryThis(get), - enumerable + enumerable, }); if (set !== undefined) { ReflectDefineProperty(dest, `${prefix}Set${key}`, { __proto__: null, value: uncurryThis(set), - enumerable + enumerable, }); } } @@ -649,7 +649,7 @@ primordials.hardenRegExp = function hardenRegExp(pattern) { configurable: true, value: { [SymbolSpecies]: RegExpLikeForStringSplitting, - } + }, }, dotAll: { __proto__: null, diff --git a/lib/internal/promise_hooks.js b/lib/internal/promise_hooks.js index 0938a86d06407b..b58f2ba1cc672f 100644 --- a/lib/internal/promise_hooks.js +++ b/lib/internal/promise_hooks.js @@ -5,7 +5,7 @@ const { ArrayPrototypeSlice, ArrayPrototypeSplice, ArrayPrototypePush, - FunctionPrototypeBind + FunctionPrototypeBind, } = primordials; const { setPromiseHooks } = internalBinding('async_wrap'); @@ -18,7 +18,7 @@ const hooks = { init: [], before: [], after: [], - settled: [] + settled: [], }; function initAll(promise, parent) { @@ -122,5 +122,5 @@ module.exports = { onInit, onBefore, onAfter, - onSettled + onSettled, }; diff --git a/lib/internal/querystring.js b/lib/internal/querystring.js index 68f52c90c27237..46fdf564dbcc8e 100644 --- a/lib/internal/querystring.js +++ b/lib/internal/querystring.js @@ -115,5 +115,5 @@ function encodeStr(str, noEscapeTable, hexTable) { module.exports = { encodeStr, hexTable, - isHexTable + isHexTable, }; diff --git a/lib/internal/socket_list.js b/lib/internal/socket_list.js index e6b2a1d7c6a84d..9949a6cde47a23 100644 --- a/lib/internal/socket_list.js +++ b/lib/internal/socket_list.js @@ -39,14 +39,14 @@ class SocketListSend extends EventEmitter { close(callback) { this._request({ cmd: 'NODE_SOCKET_NOTIFY_CLOSE', - key: this.key + key: this.key, }, 'NODE_SOCKET_ALL_CLOSED', true, callback); } getConnections(callback) { this._request({ cmd: 'NODE_SOCKET_GET_COUNT', - key: this.key + key: this.key, }, 'NODE_SOCKET_COUNT', false, (err, msg) => { if (err) return callback(err); callback(null, msg.count); @@ -69,7 +69,7 @@ class SocketListReceive extends EventEmitter { self.child._send({ cmd: 'NODE_SOCKET_ALL_CLOSED', - key: self.key + key: self.key, }, undefined, true); } @@ -87,7 +87,7 @@ class SocketListReceive extends EventEmitter { this.child._send({ cmd: 'NODE_SOCKET_COUNT', key: this.key, - count: this.connections + count: this.connections, }); } }); diff --git a/lib/internal/socketaddress.js b/lib/internal/socketaddress.js index 96554f5f28d874..2fd524bc7237f0 100644 --- a/lib/internal/socketaddress.js +++ b/lib/internal/socketaddress.js @@ -105,7 +105,7 @@ class SocketAddress extends JSTransferable { const opts = { ...options, - depth: options.depth == null ? null : options.depth - 1 + depth: options.depth == null ? null : options.depth - 1, }; return `SocketAddress ${inspect(this.toJSON(), opts)}`; diff --git a/lib/internal/source_map/source_map.js b/lib/internal/source_map/source_map.js index 868f2d6f066cd3..8a441903bb9519 100644 --- a/lib/internal/source_map/source_map.js +++ b/lib/internal/source_map/source_map.js @@ -342,5 +342,5 @@ function compareSourceMapEntry(entry1, entry2) { } module.exports = { - SourceMap + SourceMap, }; diff --git a/lib/internal/source_map/source_map_cache.js b/lib/internal/source_map/source_map_cache.js index 656c4e3f296e94..f51f97d4420363 100644 --- a/lib/internal/source_map/source_map_cache.js +++ b/lib/internal/source_map/source_map_cache.js @@ -60,12 +60,12 @@ function setSourceMapsEnabled(val) { const { setSourceMapsEnabled, - setPrepareStackTraceCallback + setPrepareStackTraceCallback, } = internalBinding('errors'); setSourceMapsEnabled(val); if (val) { const { - prepareStackTrace + prepareStackTrace, } = require('internal/source_map/prepare_stack_trace'); setPrepareStackTraceCallback(prepareStackTrace); } else if (sourceMapsEnabled !== undefined) { @@ -150,7 +150,7 @@ function maybeCacheSourceMap(filename, content, cjsModuleInstance, isGeneratedSo lineLengths: lineLengths(content), data, url, - sourceURL + sourceURL, }; generatedSourceMapCache.set(filename, entry); if (sourceURL) { @@ -295,7 +295,7 @@ function appendCJSCache(obj) { obj[ObjectGetValueSafe(value, 'filename')] = { lineLengths: ObjectGetValueSafe(value, 'lineLengths'), data: ObjectGetValueSafe(value, 'data'), - url: ObjectGetValueSafe(value, 'url') + url: ObjectGetValueSafe(value, 'url'), }; } } @@ -314,7 +314,7 @@ function findSourceMap(sourceURL) { const cachedSourceURL = ObjectGetValueSafe(value, 'sourceURL'); if (sourceURL === filename || sourceURL === cachedSourceURL) { sourceMap = { - data: ObjectGetValueSafe(value, 'data') + data: ObjectGetValueSafe(value, 'data'), }; } } diff --git a/lib/internal/stream_base_commons.js b/lib/internal/stream_base_commons.js index 231ca139d171e2..1555956affe6c3 100644 --- a/lib/internal/stream_base_commons.js +++ b/lib/internal/stream_base_commons.js @@ -13,17 +13,17 @@ const { kArrayBufferOffset, kBytesWritten, kLastWriteWasAsync, - streamBaseState + streamBaseState, } = internalBinding('stream_wrap'); const { UV_EOF } = internalBinding('uv'); const { - errnoException + errnoException, } = require('internal/errors'); const { owner_symbol } = require('internal/async_hooks').symbols; const { kTimeout, setUnrefTimeout, - getTimerDuration + getTimerDuration, } = require('internal/timers'); const { isUint8Array } = require('internal/util/types'); const { clearTimeout } = require('timers'); @@ -276,5 +276,5 @@ module.exports = { setStreamTimeout, kBuffer, kBufferCb, - kBufferGen + kBufferGen, }; diff --git a/lib/internal/timers.js b/lib/internal/timers.js index 0f8bdef9dfeb8b..1f900f6eb85de1 100644 --- a/lib/internal/timers.js +++ b/lib/internal/timers.js @@ -88,7 +88,7 @@ const { getLibuvNow, immediateInfo, timeoutInfo, - toggleImmediateRef + toggleImmediateRef, } = internalBinding('timers'); const { @@ -110,7 +110,7 @@ const trigger_async_id_symbol = Symbol('triggerId'); const kHasPrimitive = Symbol('kHasPrimitive'); const { - ERR_OUT_OF_RANGE + ERR_OUT_OF_RANGE, } = require('internal/errors').codes; const { validateFunction, @@ -205,7 +205,7 @@ class Timeout { // Only inspect one level. depth: 0, // It should not recurse. - customInspect: false + customInspect: false, }); } @@ -258,7 +258,7 @@ class TimersList { // Only inspect one level. depth: 0, // It should not recurse. - customInspect: false + customInspect: false, }); } } @@ -604,7 +604,7 @@ function getTimerCallbacks(runNextTicks) { return { processImmediate, - processTimers + processTimers, }; } @@ -665,7 +665,7 @@ module.exports = { immediateInfoFields: { kCount, kRefCount, - kHasOutstanding + kHasOutstanding, }, active, unrefActive, diff --git a/lib/internal/trace_events_async_hooks.js b/lib/internal/trace_events_async_hooks.js index 482a635f25edb2..a9f517ffc9e4ee 100644 --- a/lib/internal/trace_events_async_hooks.js +++ b/lib/internal/trace_events_async_hooks.js @@ -49,7 +49,7 @@ function createHook() { type, asyncId, { triggerAsyncId, - executionAsyncId: async_hooks.executionAsyncId() + executionAsyncId: async_hooks.executionAsyncId(), }); }, @@ -75,7 +75,7 @@ function createHook() { // Cleanup asyncId to type map typeMemory.delete(asyncId); - } + }, }); return { @@ -92,7 +92,7 @@ function createHook() { this[kEnabled] = false; hook.disable(); typeMemory.clear(); - } + }, }; } diff --git a/lib/internal/tty.js b/lib/internal/tty.js index a1a4f790a12cc3..4d3c768f65b6cd 100644 --- a/lib/internal/tty.js +++ b/lib/internal/tty.js @@ -63,7 +63,7 @@ const TERM_ENVS = { // https://github.com/da-x/rxvt-unicode/tree/v9.22-with-24bit-color 'rxvt-unicode-24bit': COLORS_16m, // https://gist.github.com/XVilka/8346728#gistcomment-2823421 - 'terminator': COLORS_16m + 'terminator': COLORS_16m, }; const TERM_ENVS_REG_EXP = [ @@ -233,5 +233,5 @@ function hasColors(count, env) { module.exports = { getColorDepth, - hasColors + hasColors, }; diff --git a/lib/internal/url.js b/lib/internal/url.js index ea68d640bc9ba5..ea5cacf30b657b 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -40,7 +40,7 @@ const { inspect } = require('internal/util/inspect'); const { encodeStr, hexTable, - isHexTable + isHexTable, } = require('internal/querystring'); const { @@ -74,7 +74,7 @@ const { CHAR_LOWERCASE_A, CHAR_LOWERCASE_Z, CHAR_PERCENT, - CHAR_PLUS + CHAR_PLUS, } = require('internal/constants'); const path = require('path'); @@ -1247,7 +1247,7 @@ function defineIDLClass(proto, classStr, obj) { writable: false, enumerable: false, configurable: true, - value: classStr + value: classStr, }); // https://heycam.github.io/webidl/#es-operations @@ -1257,7 +1257,7 @@ function defineIDLClass(proto, classStr, obj) { writable: true, enumerable: true, configurable: true, - value: obj[key] + value: obj[key], }); } for (const key of ObjectGetOwnPropertySymbols(obj)) { @@ -1266,7 +1266,7 @@ function defineIDLClass(proto, classStr, obj) { writable: true, enumerable: false, configurable: true, - value: obj[key] + value: obj[key], }); } } @@ -1306,7 +1306,7 @@ function createSearchParamsIterator(target, kind) { iterator[context] = { target, kind, - index: 0 + index: 0, }; return iterator; } @@ -1324,14 +1324,14 @@ defineIDLClass(URLSearchParamsIteratorPrototype, 'URLSearchParams Iterator', { const { target, kind, - index + index, } = this[context]; const values = target[searchParams]; const len = values.length; if (index >= len) { return { value: undefined, - done: true + done: true, }; } @@ -1350,7 +1350,7 @@ defineIDLClass(URLSearchParamsIteratorPrototype, 'URLSearchParams Iterator', { return { value: result, - done: false + done: false, }; }, [inspect.custom](recurseTimes, ctx) { @@ -1367,7 +1367,7 @@ defineIDLClass(URLSearchParamsIteratorPrototype, 'URLSearchParams Iterator', { const { target, kind, - index + index, } = this[context]; const output = ArrayPrototypeReduce( ArrayPrototypeSlice(target[searchParams], index), @@ -1393,7 +1393,7 @@ defineIDLClass(URLSearchParamsIteratorPrototype, 'URLSearchParams Iterator', { outputStr = ` ${ArrayPrototypeJoin(outputStrs, ', ')}`; } return `${this[SymbolToStringTag]} {${outputStr} }`; - } + }, }); function domainToASCII(domain) { @@ -1426,7 +1426,7 @@ function urlToHttpOptions(url) { search: url.search, pathname: url.pathname, path: `${url.pathname || ''}${url.search || ''}`, - href: url.href + href: url.href, }; if (url.port !== '') { options.port = Number(url.port); @@ -1592,5 +1592,5 @@ module.exports = { urlToHttpOptions, formatSymbol: kFormat, searchParamsSymbol: searchParams, - encodeStr + encodeStr, }; diff --git a/lib/internal/util.js b/lib/internal/util.js index bca3bec4534555..2a366f3454049b 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -47,7 +47,7 @@ const { hideStackFrames, codes: { ERR_NO_CRYPTO, - ERR_UNKNOWN_SIGNAL + ERR_UNKNOWN_SIGNAL, }, uvErrmapGet, overrideStackTrace, @@ -349,7 +349,7 @@ function promisify(original) { return ObjectDefineProperty(fn, kCustomPromisifiedSymbol, { __proto__: null, - value: fn, enumerable: false, writable: false, configurable: true + value: fn, enumerable: false, writable: false, configurable: true, }); } @@ -380,7 +380,7 @@ function promisify(original) { ObjectDefineProperty(fn, kCustomPromisifiedSymbol, { __proto__: null, - value: fn, enumerable: false, writable: false, configurable: true + value: fn, enumerable: false, writable: false, configurable: true, }); const descriptors = ObjectGetOwnPropertyDescriptors(original); @@ -494,7 +494,7 @@ function defineOperation(target, name, method) { writable: true, enumerable: true, configurable: true, - value: method + value: method, }); } @@ -505,7 +505,7 @@ function exposeInterface(target, name, interfaceObject) { writable: true, enumerable: false, configurable: true, - value: interfaceObject + value: interfaceObject, }); } diff --git a/lib/internal/v8_prof_polyfill.js b/lib/internal/v8_prof_polyfill.js index f4d9380ea810e6..8d047a530d799c 100644 --- a/lib/internal/v8_prof_polyfill.js +++ b/lib/internal/v8_prof_polyfill.js @@ -65,7 +65,7 @@ const os = { out = macCppfiltNm(out); } return out; - } + }, }; const print = console.log; function read(fileName) { @@ -112,7 +112,7 @@ function readline() { if (bytes === 0) { process.emitWarning(`Profile file ${logFile} is broken`, { code: 'BROKEN_PROFILE_FILE', - detail: `${JSON.stringify(line)} at the file end is broken` + detail: `${JSON.stringify(line)} at the file end is broken`, }); return ''; } @@ -149,7 +149,7 @@ function macCppfiltNm(out) { let filtered; try { filtered = cp.spawnSync('c++filt', [ '-p', '-i' ], { - input: entries.join('\n') + input: entries.join('\n'), }).stdout.toString(); } catch { return out; diff --git a/lib/internal/validators.js b/lib/internal/validators.js index 66d92102cb049c..5d6f78c2a30ed8 100644 --- a/lib/internal/validators.js +++ b/lib/internal/validators.js @@ -27,12 +27,12 @@ const { ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL, - } + }, } = require('internal/errors'); const { normalizeEncoding } = require('internal/util'); const { isAsyncFunction, - isArrayBufferView + isArrayBufferView, } = require('internal/util/types'); const { signals } = internalBinding('constants').os; @@ -547,5 +547,5 @@ module.exports = { validateUndefined, validateUnion, validateAbortSignal, - validateLinkHeaderValue + validateLinkHeaderValue, }; diff --git a/lib/internal/wasm_web_api.js b/lib/internal/wasm_web_api.js index 8b28b5e1fb4574..9c21864fa56998 100644 --- a/lib/internal/wasm_web_api.js +++ b/lib/internal/wasm_web_api.js @@ -62,5 +62,5 @@ function wasmStreamingCallback(streamState, source) { } module.exports = { - wasmStreamingCallback + wasmStreamingCallback, }; diff --git a/lib/internal/watchdog.js b/lib/internal/watchdog.js index c63f29336fcfee..543ea6f6b02461 100644 --- a/lib/internal/watchdog.js +++ b/lib/internal/watchdog.js @@ -1,7 +1,7 @@ 'use strict'; const { - TraceSigintWatchdog + TraceSigintWatchdog, } = internalBinding('watchdog'); class SigintWatchdog extends TraceSigintWatchdog { @@ -55,5 +55,5 @@ class SigintWatchdog extends TraceSigintWatchdog { module.exports = { - SigintWatchdog + SigintWatchdog, }; diff --git a/lib/internal/worker.js b/lib/internal/worker.js index d9fe65e7ce0867..a05d915a9256b5 100644 --- a/lib/internal/worker.js +++ b/lib/internal/worker.js @@ -51,7 +51,7 @@ const { kStdioWantsMoreDataCallback, setupPortReferencing, ReadableWorkerStdio, - WritableWorkerStdio + WritableWorkerStdio, } = workerIo; const { deserializeError } = require('internal/error_serdes'); const { fileURLToPath, isURLInstance, pathToFileURL } = require('internal/url'); @@ -68,7 +68,7 @@ const { kMaxOldGenerationSizeMb, kCodeRangeSizeMb, kStackSizeMb, - kTotalResourceLimitCount + kTotalResourceLimitCount, } = internalBinding('worker'); const kHandle = Symbol('kHandle'); @@ -250,7 +250,7 @@ class Worker extends EventEmitter { manifestSrc: getOptionValue('--experimental-policy') ? require('internal/process/policy').src : null, - hasStdin: !!options.stdin + hasStdin: !!options.stdin, }, transferList); // Use this to cache the Worker's loopStart value once available. this[kLoopStartTime] = -1; @@ -454,7 +454,7 @@ function makeResourceLimits(float64arr) { maxYoungGenerationSizeMb: float64arr[kMaxYoungGenerationSizeMb], maxOldGenerationSizeMb: float64arr[kMaxOldGenerationSizeMb], codeRangeSizeMb: float64arr[kCodeRangeSizeMb], - stackSizeMb: float64arr[kStackSizeMb] + stackSizeMb: float64arr[kStackSizeMb], }; }