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

Function new_runtime

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

Source from the content-addressed store, hash-verified

8#include "cutils.h"
9
10static JSRuntime *new_runtime(void)
11{
12 JSRuntime *rt = JS_NewRuntime();
13
14 if (rt)
15 JS_SetDumpFlags(rt, JS_ABORT_ON_LEAKS);
16 return rt;
17}
18
19static JSValue eval(JSContext *ctx, const char *code)
20{

Callers 15

cfunctionsFunction · 0.85
sync_callFunction · 0.85
async_callFunction · 0.85
raw_context_global_varFunction · 0.85
is_arrayFunction · 0.85
module_serdeFunction · 0.85
runtime_cstring_freeFunction · 0.85
utf16_stringFunction · 0.85
weak_map_gc_checkFunction · 0.85
promise_hookFunction · 0.85
dump_memory_usageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected