Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano-perez-rodriguez committed Jul 4, 2024
1 parent ffbd60c commit 0eebb7f
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/workerCode.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1638,8 +1638,7 @@ const workerRunner = (_bootTunnel, _defaultEnclosureName, _listen, _shout) => {
* @returns {T[]} The list of set keys.
*/
const mapKeys = (map) =>
Array
.from(map.entries())
Array.from(map.entries())
/* eslint-disable-next-line no-unused-vars */
.filter(([_, v]) => undefined !== v)
.map(([k]) => k);
Expand Down Expand Up @@ -1830,9 +1829,9 @@ const workerRunner = (_bootTunnel, _defaultEnclosureName, _listen, _shout) => {
]),
);
{
const collisions = Array
.from(newSubEnclosures.values())
.filter((newSubEnclosure) => enclosures.has(newSubEnclosure));
const collisions = Array.from(newSubEnclosures.values()).filter((newSubEnclosure) =>
enclosures.has(newSubEnclosure),
);
if (0 < collisions.length) {
throw new Error(`collisions found on [${collisions.join(', ')}]`);
}
Expand Down Expand Up @@ -2887,15 +2886,7 @@ return null;`,
Symbol.split,
Symbol.search,
];
keep['Array'] = [
...keep['Function.instance'],
'prototype',
Symbol.species,
'from',
'fromAsync',
'isArray',
'of',
];
keep['Array'] = [...keep['Function.instance'], 'prototype', Symbol.species, 'from', 'fromAsync', 'isArray', 'of'];
keep['Array.prototype'] = [
...keep['Object.prototype'],
Symbol.unscopables,
Expand Down

0 comments on commit 0eebb7f

Please sign in to comment.