From 1848fe3a582d3bb6565ee150780c464a6bc41b24 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 12 Feb 2023 19:23:51 +0100 Subject: [PATCH] lib: add trailing commas to more internal files --- lib/.eslintrc.yaml | 13 +++----- lib/_http_agent.js | 4 +-- lib/_http_client.js | 8 ++--- lib/_http_common.js | 2 +- lib/_http_incoming.js | 16 +++++----- lib/_http_outgoing.js | 34 ++++++++++----------- lib/_http_server.js | 20 ++++++------ lib/internal/abort_controller.js | 12 ++++---- lib/internal/async_hooks.js | 16 +++++----- lib/internal/blob.js | 8 ++--- lib/internal/blocklist.js | 6 ++-- lib/internal/buffer.js | 6 ++-- lib/internal/constants.js | 2 +- lib/internal/dgram.js | 2 +- lib/internal/encoding.js | 14 ++++----- lib/internal/error_serdes.js | 8 ++--- lib/internal/errors.js | 16 +++++----- lib/internal/file.js | 2 +- lib/internal/freeze_intrinsics.js | 8 ++--- lib/internal/histogram.js | 10 +++--- lib/internal/inspector_async_hook.js | 2 +- lib/internal/linkedlist.js | 2 +- lib/internal/net.js | 2 +- lib/internal/options.js | 2 +- lib/internal/per_context/domexception.js | 6 ++-- lib/internal/per_context/primordials.js | 6 ++-- lib/internal/promise_hooks.js | 6 ++-- lib/internal/querystring.js | 2 +- lib/internal/socket_list.js | 8 ++--- lib/internal/socketaddress.js | 2 +- lib/internal/source_map/source_map.js | 2 +- lib/internal/source_map/source_map_cache.js | 6 ++-- lib/internal/stream_base_commons.js | 8 ++--- lib/internal/timers.js | 12 ++++---- lib/internal/trace_events_async_hooks.js | 6 ++-- lib/internal/tty.js | 4 +-- lib/internal/url.js | 26 ++++++++-------- lib/internal/util.js | 10 +++--- lib/internal/v8_prof_polyfill.js | 6 ++-- lib/internal/validators.js | 4 +-- lib/internal/wasm_web_api.js | 2 +- lib/internal/watchdog.js | 4 +-- lib/internal/worker.js | 12 ++++---- 43 files changed, 171 insertions(+), 176 deletions(-) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index a10af356b9d356..ad0a015723bc3a 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -263,10 +263,8 @@ globals: primordials: false overrides: - files: - - ./*/promises.js - - ./_stream_*.js - - ./_tls_common.js - - ./assert/*.js + - ./*/*.js + - ./_*.js - ./child_process.js - ./cluster.js - ./console.js @@ -290,7 +288,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 @@ -299,7 +297,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 @@ -312,15 +310,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 8129fcfdeb9cae..b1508f23c6e6b7 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -245,7 +245,7 @@ Agent.prototype.addRequest = function addRequest(req, options, port/* legacy */, __proto__: null, host: options, port, - localAddress + localAddress, }; } @@ -551,5 +551,5 @@ function asyncResetHandle(socket) { module.exports = { Agent, - globalAgent: new Agent({ keepAlive: true, scheduling: 'lifo', timeout: 5000 }) + globalAgent: new Agent({ keepAlive: true, scheduling: 'lifo', timeout: 5000 }), }; diff --git a/lib/_http_client.js b/lib/_http_client.js index 5fc8ccb36c018b..024834c7ecfd22 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, @@ -644,7 +644,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. @@ -970,5 +970,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 2a1efcb67b54d9..7287120c43b713 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -52,7 +52,7 @@ const { } = require('_http_common'); const { defaultTriggerAsyncIdScope, - symbols: { async_id_symbol } + symbols: { async_id_symbol }, } = require('internal/async_hooks'); const { codes: { @@ -69,9 +69,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'); @@ -176,28 +176,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', { @@ -205,7 +205,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'writableCorked', { get() { const corked = this.socket ? this.socket.writableCorked : 0; return corked + this[kCorked]; - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, '_headers', { @@ -226,7 +226,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', { @@ -236,7 +236,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'connection', { }, set: function(val) { this.socket = val; - } + }, }); ObjectDefineProperty(OutgoingMessage.prototype, '_headerNames', { @@ -271,7 +271,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, '_headerNames', { header[0] = val[keys[i]]; } } - }, 'OutgoingMessage.prototype._headerNames is deprecated', 'DEP0066') + }, 'OutgoingMessage.prototype._headerNames is deprecated', 'DEP0066'), }); @@ -367,7 +367,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); @@ -418,7 +418,7 @@ function _storeHeader(firstLine, headers) { date: false, expect: false, trailer: false, - header: firstLine + header: firstLine, }; if (headers) { @@ -810,19 +810,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'); @@ -1175,5 +1175,5 @@ module.exports = { parseUniqueHeadersOption, validateHeaderName, validateHeaderValue, - OutgoingMessage + OutgoingMessage, }; diff --git a/lib/_http_server.js b/lib/_http_server.js index a005a3f19ba948..9f396b440ae6e2 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, @@ -76,7 +76,7 @@ const { ERR_HTTP_INVALID_STATUS_CODE, ERR_HTTP_SOCKET_ENCODING, ERR_INVALID_ARG_VALUE, - ERR_INVALID_CHAR + ERR_INVALID_CHAR, } = codes; const { kEmptyObject, @@ -85,7 +85,7 @@ const { validateInteger, validateBoolean, validateLinkHeaderValue, - validateObject + validateObject, } = require('internal/validators'); const Buffer = require('buffer').Buffer; const { setInterval, clearInterval } = require('timers'); @@ -169,7 +169,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; @@ -663,7 +663,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); @@ -922,7 +922,7 @@ function resOnFinish(req, res, socket, state, server) { request: req, response: res, socket, - server + server, }); } @@ -1014,7 +1014,7 @@ function parserOnIncoming(server, socket, state, req, keepAlive) { request: req, response: res, socket, - server + server, }); } @@ -1157,5 +1157,5 @@ module.exports = { setupConnectionsTracking, storeHTTPOptions, _connectionListener: connectionListener, - kServerResponse + kServerResponse, }; diff --git a/lib/internal/abort_controller.js b/lib/internal/abort_controller.js index 74217075798ced..847d9db6699d75 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); } @@ -334,7 +334,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 a3b6d0e6432865..abaccb0e9dc740 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; } @@ -387,7 +387,7 @@ function updatePromiseHookMode() { init: initHook, before: promiseBeforeHook, after: promiseAfterHook, - settled: promiseResolveHooksExist() ? promiseResolveHook : undefined + settled: promiseResolveHooksExist() ? promiseResolveHook : undefined, }); } @@ -586,10 +586,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, @@ -620,9 +620,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 6761ccae230816..226a071b6d1a79 100644 --- a/lib/internal/blob.js +++ b/lib/internal/blob.js @@ -176,7 +176,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({ @@ -191,7 +191,7 @@ class Blob { const length = this[kLength]; return { data: { handle, type, length }, - deserializeInfo: 'internal/blob:ClonedBlob' + deserializeInfo: 'internal/blob:ClonedBlob', }; } @@ -318,7 +318,7 @@ class Blob { if (this.size === 0) { return new lazyReadableStream({ - start(c) { c.close(); } + start(c) { c.close(); }, }); } @@ -368,7 +368,7 @@ class Blob { pending.reject(reason); } this.pendingPulls = []; - } + }, // We set the highWaterMark to 0 because we do not want the stream to // start reading immediately on creation. We want it to wait until read // is called. 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/encoding.js b/lib/internal/encoding.js index 6222bcffece15e..5feec0552870be 100644 --- a/lib/internal/encoding.js +++ b/lib/internal/encoding.js @@ -21,7 +21,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'); @@ -42,7 +42,7 @@ const { const { isAnyArrayBuffer, isArrayBufferView, - isUint8Array + isUint8Array, } = require('internal/util/types'); const { @@ -350,7 +350,7 @@ class TextEncoder { return this; const ctor = getConstructorOf(this); const obj = { __proto__: { - constructor: ctor === null ? TextEncoder : ctor + constructor: ctor === null ? TextEncoder : ctor, } }; obj.encoding = this.encoding; // Lazy to avoid circular dependency @@ -581,7 +581,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++) { @@ -597,12 +597,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 dbc5e03fea028b..13f3f8b35fdab0 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 bd68c9bd554582..742d723155e7fe 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/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/histogram.js b/lib/internal/histogram.js index df091e9c2e9805..37bde8195e4d34 100644 --- a/lib/internal/histogram.js +++ b/lib/internal/histogram.js @@ -11,7 +11,7 @@ const { } = primordials; const { - Histogram: _Histogram + Histogram: _Histogram, } = internalBinding('performance'); const { @@ -63,7 +63,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({ @@ -242,7 +242,7 @@ class Histogram { const handle = this[kHandle]; return { data: { handle }, - deserializeInfo: 'internal/histogram:internalHistogram' + deserializeInfo: 'internal/histogram:internalHistogram', }; } @@ -258,7 +258,7 @@ class Histogram { mean: this.mean, exceeds: this.exceeds, stddev: this.stddev, - percentiles: ObjectFromEntries(MapPrototypeEntries(this.percentiles)) + percentiles: ObjectFromEntries(MapPrototypeEntries(this.percentiles)), }; } } @@ -309,7 +309,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 b7f721e0dda7c9..32825d4a72ac65 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 a520af68eb7efa..ee1f9c404e8b6f 100644 --- a/lib/internal/source_map/source_map_cache.js +++ b/lib/internal/source_map/source_map_cache.js @@ -54,12 +54,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) { @@ -147,7 +147,7 @@ function maybeCacheSourceMap(filename, content, cjsModuleInstance, isGeneratedSo lineLengths: lineLengths(content), data, url, - sourceURL + sourceURL, }; generatedSourceMapCache.set(filename, entry); if (sourceURL) { 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 dac5938eabd7df..2b3848e6df7caf 100644 --- a/lib/internal/timers.js +++ b/lib/internal/timers.js @@ -87,7 +87,7 @@ const { getLibuvNow, immediateInfo, timeoutInfo, - toggleImmediateRef + toggleImmediateRef, } = internalBinding('timers'); const { @@ -109,7 +109,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, @@ -204,7 +204,7 @@ class Timeout { // Only inspect one level. depth: 0, // It should not recurse. - customInspect: false + customInspect: false, }); } @@ -257,7 +257,7 @@ class TimersList { // Only inspect one level. depth: 0, // It should not recurse. - customInspect: false + customInspect: false, }); } } @@ -603,7 +603,7 @@ function getTimerCallbacks(runNextTicks) { return { processImmediate, - processTimers + processTimers, }; } @@ -664,7 +664,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 366499e47789f5..c4640a68b28d23 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -37,7 +37,7 @@ const { inspect } = require('internal/util/inspect'); const { encodeStr, hexTable, - isHexTable + isHexTable, } = require('internal/querystring'); const { @@ -71,7 +71,7 @@ const { CHAR_LOWERCASE_A, CHAR_LOWERCASE_Z, CHAR_PERCENT, - CHAR_PLUS + CHAR_PLUS, } = require('internal/constants'); const path = require('path'); @@ -972,7 +972,7 @@ function defineIDLClass(proto, classStr, obj) { writable: false, enumerable: false, configurable: true, - value: classStr + value: classStr, }); // https://heycam.github.io/webidl/#es-operations @@ -982,7 +982,7 @@ function defineIDLClass(proto, classStr, obj) { writable: true, enumerable: true, configurable: true, - value: obj[key] + value: obj[key], }); } for (const key of ObjectGetOwnPropertySymbols(obj)) { @@ -991,7 +991,7 @@ function defineIDLClass(proto, classStr, obj) { writable: true, enumerable: false, configurable: true, - value: obj[key] + value: obj[key], }); } } @@ -1031,7 +1031,7 @@ function createSearchParamsIterator(target, kind) { iterator[context] = { target, kind, - index: 0 + index: 0, }; return iterator; } @@ -1049,14 +1049,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, }; } @@ -1075,7 +1075,7 @@ defineIDLClass(URLSearchParamsIteratorPrototype, 'URLSearchParams Iterator', { return { value: result, - done: false + done: false, }; }, [inspect.custom](recurseTimes, ctx) { @@ -1092,7 +1092,7 @@ defineIDLClass(URLSearchParamsIteratorPrototype, 'URLSearchParams Iterator', { const { target, kind, - index + index, } = this[context]; const output = ArrayPrototypeReduce( ArrayPrototypeSlice(target[searchParams], index), @@ -1118,7 +1118,7 @@ defineIDLClass(URLSearchParamsIteratorPrototype, 'URLSearchParams Iterator', { outputStr = ` ${ArrayPrototypeJoin(outputStrs, ', ')}`; } return `${this[SymbolToStringTag]} {${outputStr} }`; - } + }, }); function domainToASCII(domain) { @@ -1151,7 +1151,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); @@ -1316,5 +1316,5 @@ module.exports = { domainToUnicode, urlToHttpOptions, searchParamsSymbol: searchParams, - encodeStr + encodeStr, }; diff --git a/lib/internal/util.js b/lib/internal/util.js index 5665923a2cd297..64f329d28df6ed 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -46,7 +46,7 @@ const { hideStackFrames, codes: { ERR_NO_CRYPTO, - ERR_UNKNOWN_SIGNAL + ERR_UNKNOWN_SIGNAL, }, uvErrmapGet, overrideStackTrace, @@ -351,7 +351,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, }); } @@ -382,7 +382,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); @@ -496,7 +496,7 @@ function defineOperation(target, name, method) { writable: true, enumerable: true, configurable: true, - value: method + value: method, }); } @@ -507,7 +507,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 d86370176a8aa8..dc4c5ab6be5792 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; 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 ccb4e7d12a5541..0304d7e4c7c6b8 100644 --- a/lib/internal/worker.js +++ b/lib/internal/worker.js @@ -27,7 +27,7 @@ const EventEmitter = require('events'); const assert = require('internal/assert'); const path = require('path'); const { - internalEventLoopUtilization + internalEventLoopUtilization, } = require('internal/perf/event_loop_utilization'); const errorCodes = require('internal/errors').codes; @@ -52,7 +52,7 @@ const { kStdioWantsMoreDataCallback, setupPortReferencing, ReadableWorkerStdio, - WritableWorkerStdio + WritableWorkerStdio, } = workerIo; const { deserializeError } = require('internal/error_serdes'); const { fileURLToPath, isURLInstance, pathToFileURL } = require('internal/url'); @@ -69,7 +69,7 @@ const { kMaxOldGenerationSizeMb, kCodeRangeSizeMb, kStackSizeMb, - kTotalResourceLimitCount + kTotalResourceLimitCount, } = internalBinding('worker'); const kHandle = Symbol('kHandle'); @@ -254,7 +254,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; @@ -420,7 +420,7 @@ class Worker extends EventEmitter { getHeapSnapshot(options) { const { HeapSnapshotStream, - getHeapSnapshotOptions + getHeapSnapshotOptions, } = require('internal/heap_utils'); const optionsArray = getHeapSnapshotOptions(options); const heapSnapshotTaker = this[kHandle]?.takeHeapSnapshot(optionsArray); @@ -467,7 +467,7 @@ function makeResourceLimits(float64arr) { maxYoungGenerationSizeMb: float64arr[kMaxYoungGenerationSizeMb], maxOldGenerationSizeMb: float64arr[kMaxOldGenerationSizeMb], codeRangeSizeMb: float64arr[kCodeRangeSizeMb], - stackSizeMb: float64arr[kStackSizeMb] + stackSizeMb: float64arr[kStackSizeMb], }; }