Skip to content

Commit

Permalink
fix(ses): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm committed Jul 2, 2024
1 parent 61b8d81 commit 4280ee6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/ses/src/module-load.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,13 @@ function asyncJobQueue() {
*
* @returns {Promise<Array<Error>>}
*/
async function drainQueue () {
async function drainQueue() {
for (const job of pendingJobs) {
// eslint-disable-next-line no-await-in-loop
await job;
}
return errors;
};
}
return { enqueueJob, drainQueue };
}

Expand Down Expand Up @@ -387,7 +387,7 @@ const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;
* compartment and the specifier of the module within its own compartment.
* This graph is then ready to be synchronously linked and executed.
*/
export async function load (
export async function load(
compartmentPrivateFields,
moduleAliases,
compartment,
Expand Down Expand Up @@ -422,7 +422,7 @@ export async function load (
compartmentName,
)}`,
});
};
}

/*
* `loadNow` synchronously gathers the `StaticModuleRecord`s for a module and its
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/src/permits.js
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,7 @@ export const permitted = {
};

try {
new FERAL_FUNCTION('async function* AsyncGeneratorFunctionInstance() {}')();
new FERAL_FUNCTION('async function* AsyncGeneratorFunctionInstance() {}')();
assign(permitted, {
'%InertAsyncGeneratorFunction%': {
// Properties of the AsyncGeneratorFunction Constructor
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/src/tame-function-constructors.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function tameFunctionConstructors() {
);

try {
new FERAL_FUNCTION('async function* AsyncGeneratorFunctionInstance() {}')();
new FERAL_FUNCTION('async function* AsyncGeneratorFunctionInstance() {}')();
repairFunction(
'AsyncGeneratorFunction',
'%InertAsyncGeneratorFunction%',
Expand Down

0 comments on commit 4280ee6

Please sign in to comment.