diff options
Diffstat (limited to 'test/bun.js/inline.macro.js')
-rw-r--r-- | test/bun.js/inline.macro.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/bun.js/inline.macro.js b/test/bun.js/inline.macro.js index ff0292d0a..0fd7491b9 100644 --- a/test/bun.js/inline.macro.js +++ b/test/bun.js/inline.macro.js @@ -1,3 +1,19 @@ 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); + }); +} |