js.bend relies on unsafe/foreign
raw source on the hub · import bend-over-js-eval@0.1.0.0/js.bend as Js
2 imports
import Base import bend-kit-json@0.3.0.0/json.bend as Json
Definitions
def decoded source · line 9 · raw
@value:Maybe<&2, 0xaaa10a97bf5ac6990143da2c863f8a3f/json.Val> -> Result<&2, &2, String, 0xaaa10a97bf5ac6990143da2c863f8a3f/json.Val>
def decode source · line 16 · raw
@result:Result<&2, &2, String, String> -> Result<&2, &2, String, 0xaaa10a97bf5ac6990143da2c863f8a3f/json.Val>
def eval source · line 24 · raw
@source:String -> IO(Result<&2, &2, String, 0xaaa10a97bf5ac6990143da2c863f8a3f/json.Val>)
Evaluate synchronously, then turn the JSON snapshot into a Bend value.
Effects (foreign code)
effect eval_json source · line 6 · raw
@source:String -> IO(Result<&2, &2, String, String>)
Host boundary: JavaScript source in, JSON text or an error out. A future C/JavaScriptCore effect can implement this same signature.
foreign: eval.js