Files
Synapse/cli/lib/js_bytecode_stubs.c
Dasemu 40631362b3 Initial import of LogDarioSeq baseline
Establishes version control for the personal Logseq DB fork before
starting the server-client architecture migration and domain features
described in docs/agent-guide and the approved implementation plan.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 15:32:15 +02:00

38 lines
1.2 KiB
C

#include <caml/alloc.h>
#include <caml/fail.h>
#include <caml/mlvalues.h>
CAMLprim value caml_js_from_string(value string) { return string; }
CAMLprim value caml_js_to_string(value value) { return value; }
CAMLprim value caml_js_var(value name) {
caml_failwith("JavaScript global lookup is unavailable outside wasm");
}
CAMLprim value caml_js_get(value object, value field) {
caml_failwith("JavaScript property access is unavailable outside wasm");
}
CAMLprim value caml_js_fun_call(value fn, value args) {
caml_failwith("JavaScript function call is unavailable outside wasm");
}
CAMLprim value caml_js_meth_call(value object, value method_name, value args) {
caml_failwith("JavaScript method call is unavailable outside wasm");
}
CAMLprim value caml_js_new(value constructor, value args) {
caml_failwith("JavaScript object construction is unavailable outside wasm");
}
CAMLprim value caml_js_object(value fields) {
caml_failwith("JavaScript object construction is unavailable outside wasm");
}
CAMLprim value caml_js_wrap_callback(value callback) { return callback; }
CAMLprim value caml_js_eval_string(value source) {
caml_failwith("JavaScript eval is unavailable outside wasm");
}