MCPcopy Create free account
hub / github.com/buke/quickjs-go / eval

Function eval

deps/quickjs/api-test.c:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19static JSValue eval(JSContext *ctx, const char *code)
20{
21 return JS_Eval(ctx, code, strlen(code), "<input>", JS_EVAL_TYPE_GLOBAL);
22}
23
24static JSValue cfunc_callback(JSContext *ctx, JSValueConst this_val,
25 int argc, JSValueConst *argv)

Callers 15

sc_jsNewFunction · 0.85
cfunctionsFunction · 0.85
sync_callFunction · 0.85
async_callFunction · 0.85
raw_context_global_varFunction · 0.85
is_arrayFunction · 0.85
runtime_cstring_freeFunction · 0.85
weak_map_gc_checkFunction · 0.85
global_object_prototypeFunction · 0.85
slice_string_tocstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected