mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
20 lines
373 B
JavaScript
20 lines
373 B
JavaScript
export function whatDidIPass(expr, ctx) {
|
|
return ctx;
|
|
}
|
|
|
|
export function promiseReturningFunction(expr, ctx) {
|
|
return new Promise((resolve, reject) => {
|
|
setTimeout(() => {
|
|
resolve(1);
|
|
}, 1);
|
|
});
|
|
}
|
|
|
|
export function promiseReturningCtx(expr, ctx) {
|
|
return new Promise((resolve, reject) => {
|
|
setTimeout(() => {
|
|
resolve(ctx);
|
|
}, 1);
|
|
});
|
|
}
|