ec_context_free(ctx); ec_runtime_free(rt); return 0;
if (ec_is_error(result)) const char* err = ec_stringify(ctx, result); fprintf(stderr, "Error: %s\n", err); eagle craft javascript runtime
const char* script = "console.log('Hello from Eagle Craft');"; ec_value_t result = ec_run_string(ctx, script, "<main>"); ec_value_t result = ec_run_string(ctx
Example package.json for an embedded project: Example package.json for an embedded project: