Alternera.Plugins.Javascript (alternera_plugin_javascript v0.9.0)

Copy Markdown View Source

The JavaScript step: a script written as the body of a function, run on the request or the response in a fresh WebAssembly instance per call. What it returns goes where its To rows say, as Script's returned value does.

Everything a language step does is the framework's (PluginWasmFramework.Language): settings, the env, host calls, results, the memory limit and the editor (PluginWasmFramework.StepEditor). This module names the language and its module, priv/javascript.wasm, built by guest/build.sh from guest/javascript_guest.c and guest/prelude.js, which is the script's API (docs/internals.adoc).

Experimental: installed only with :experimental_plugins set (Pipelines.PluginRegistry) until the runtime binding is chosen.

Summary

Functions

The language this plugin runs. Built per call rather than held in a module attribute, so the module's path is the installation's, not the build machine's.

Where the built module is, in this installation.

Functions

language()

The language this plugin runs. Built per call rather than held in a module attribute, so the module's path is the installation's, not the build machine's.

module_path()

@spec module_path() :: Path.t()

Where the built module is, in this installation.