mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
Resolve 7058's promises with undefined so both checkers agree
This commit is contained in:
@@ -60,7 +60,7 @@ await new Promise((resolve) => {
|
||||
},
|
||||
(err, value) => {
|
||||
console.log("array source:", err ?? null, value);
|
||||
resolve();
|
||||
resolve(undefined);
|
||||
},
|
||||
);
|
||||
});
|
||||
@@ -114,7 +114,7 @@ function ticker(log) {
|
||||
await new Promise((resolve) =>
|
||||
pipeline(["a", "b"], new PassThrough(), sink(log), () => {
|
||||
stop();
|
||||
resolve();
|
||||
resolve(undefined);
|
||||
}),
|
||||
);
|
||||
console.log("array ticks:", log.join(" "));
|
||||
@@ -134,7 +134,7 @@ function ticker(log) {
|
||||
sink(log),
|
||||
() => {
|
||||
stop();
|
||||
resolve();
|
||||
resolve(undefined);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user