diff --git a/tests/corpus/6839-node-island-path-mapped/node_modules/pathkit/build/index.mjs b/tests/corpus/6839-node-island-path-mapped/node_modules/pathkit/build/index.mjs index e41172550..04b3bb548 100644 --- a/tests/corpus/6839-node-island-path-mapped/node_modules/pathkit/build/index.mjs +++ b/tests/corpus/6839-node-island-path-mapped/node_modules/pathkit/build/index.mjs @@ -1,8 +1,8 @@ -// The loader picks its part with a computed require() specifier, which -// scriptc does not compile natively: the package runs in a Node island. +// The loader requires its part with spread arguments, which scriptc does +// not compile natively: the package runs in a Node island. import { createRequire } from "node:module"; const load = createRequire(import.meta.url); -const { Route } = ["./route.cjs"].map((p) => load(p))[0]; +const { Route } = load(...["./route.cjs"]); export function route(path, weight) { return new Route(path, weight); }