aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2024-10-08 01:20:15 +0100
committerArun Isaac2024-10-08 01:20:15 +0100
commit037d37c68d16952ea769ac1e65f727a9df742dd3 (patch)
tree20a69b4076d15937a283d114a7fd1fe6223f74c4
parentb304a0949b6c77f4b2a58d0156284472dc2fc36f (diff)
downloadravanan-037d37c68d16952ea769ac1e65f727a9df742dd3.tar.gz
ravanan-037d37c68d16952ea769ac1e65f727a9df742dd3.tar.lz
ravanan-037d37c68d16952ea769ac1e65f727a9df742dd3.zip
javascript: Handle node calls without context.
* ravanan/javascript.scm (evaluate-using-node): Handle cases when context is #f.
-rw-r--r--ravanan/javascript.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/ravanan/javascript.scm b/ravanan/javascript.scm
index 5ee7cc8..a416d27 100644
--- a/ravanan/javascript.scm
+++ b/ravanan/javascript.scm
@@ -133,7 +133,8 @@ the node javascript engine."
. value)
(set-variable name value))
(_ #f))
- context))))
+ (or context
+ (list))))))
(if context
;; Evaluate immediately.