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

Function js_set_error_object

deps/quickjs/quickjs-libc.c:1251–1256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249}
1250
1251static void js_set_error_object(JSContext *ctx, JSValueConst obj, int err)
1252{
1253 if (!JS_IsUndefined(obj)) {
1254 JS_SetPropertyStr(ctx, obj, "errno", JS_NewInt32(ctx, err));
1255 }
1256}
1257
1258static JSValue js_std_open(JSContext *ctx, JSValueConst this_val,
1259 int argc, JSValueConst *argv)

Callers 4

js_std_openFunction · 0.85
js_std_popenFunction · 0.85
js_std_fdopenFunction · 0.85
js_std_tmpfileFunction · 0.85

Calls 2

JS_IsUndefinedFunction · 0.85
JS_NewInt32Function · 0.85

Tested by

no test coverage detected