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

Function make_string_error

deps/quickjs/quickjs-libc.c:3001–3006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2999}
3000
3001static JSValue make_string_error(JSContext *ctx,
3002 const char *buf,
3003 int err)
3004{
3005 return make_obj_error(ctx, JS_NewString(ctx, buf), err);
3006}
3007
3008/* return [cwd, errorcode] */
3009static JSValue js_os_getcwd(JSContext *ctx, JSValueConst this_val,

Callers 3

js_os_getcwdFunction · 0.85
js_os_realpathFunction · 0.85
js_os_readlinkFunction · 0.85

Calls 2

make_obj_errorFunction · 0.85
JS_NewStringFunction · 0.85

Tested by

no test coverage detected