aboutsummaryrefslogtreecommitdiff
path: root/test/bundler/inline.macro.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bundler/inline.macro.js')
-rw-r--r--test/bundler/inline.macro.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/bundler/inline.macro.js b/test/bundler/inline.macro.js
new file mode 100644
index 000000000..8b157aa38
--- /dev/null
+++ b/test/bundler/inline.macro.js
@@ -0,0 +1,23 @@
+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(
+ ctx => {
+ resolve(ctx);
+ },
+ 1,
+ ctx,
+ );
+ });
+}