diff options
author | Arun Isaac | 2024-10-04 16:58:07 +0100 |
---|---|---|
committer | Arun Isaac | 2024-10-04 17:00:27 +0100 |
commit | f2ab2860f2e02b4ddc080242154c8f44dec9081e (patch) | |
tree | 701c3fa37adb96412f794343f553ff7e4402551e /COPYING | |
parent | c88a98e93832d2b8d4ba89c953e606e05e9321d6 (diff) | |
download | ravanan-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 'COPYING')
0 files changed, 0 insertions, 0 deletions