aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorArun Isaac2024-10-04 16:58:07 +0100
committerArun Isaac2024-10-04 17:00:27 +0100
commitf2ab2860f2e02b4ddc080242154c8f44dec9081e (patch)
tree701c3fa37adb96412f794343f553ff7e4402551e /bin
parentc88a98e93832d2b8d4ba89c953e606e05e9321d6 (diff)
downloadravanan-f2ab2860f2e02b4ddc080242154c8f44dec9081e.tar.gz
ravanan-f2ab2860f2e02b4ddc080242154c8f44dec9081e.tar.lz
ravanan-f2ab2860f2e02b4ddc080242154c8f44dec9081e.zip
javascript: Unify simple parameter reference and node fallback.
* ravanan/command-line-tool.scm: Do not import (ravanan config), and node from (gnu packages node). (%worker-node): Move to (ravanan javascript). (interpolate-parameter-references): Delete function. (coerce-expression): Always call evaluate-parameter-reference from (ravanan javascript). * ravanan/work/command-line-tool.scm (evaluate-parameter-reference): Delete function. * ravanan/javascript.scm: Mention fallback to node in module commentary. Import (ravanan config), (ravanan work command-line-tool), and node from (gnu packages node). (evaluate-simple-parameter-reference): Rename to evaluate-parameter-reference. (evaluate-parameter-reference-1, evaluate-parameter-reference): Add expression-lib argument. Return regular values, not maybe-monadic values. (evaluate-using-node): New function. * tests/javascript.scm ("evaluate parameter reference", "evaluate parameter reference with string interpolation", "evaluate parameter reference with string interpolation of JSON trees"): Update tests. ("evaluate parameter reference with node", "evaluate parameter reference with string interpolation using node", "evaluate parameter reference with string interpolation of JSON trees using node"): New tests.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions