From f61677bbc3ae32cc460014cffe4d9ae9264291c5 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 20 Aug 2023 11:29:07 +0530 Subject: feat: function declaration --- src/eval.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/eval.ts') diff --git a/src/eval.ts b/src/eval.ts index 26b3df0..e421d7a 100644 --- a/src/eval.ts +++ b/src/eval.ts @@ -245,7 +245,9 @@ const getFunctions = ( return EvalValue.Void() }, - _: () => Promise.reject(new Error('not supposed to be here')), + func: async () => EvalValue.Lazy(args), + + _: () => Promise.reject(new Error(`Not implemented: ${name}`)), }) } -- cgit v1.3.1