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

Function js_std_tmpfile

deps/quickjs/quickjs-libc.c:1366–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364
1365#if !defined(__wasi__)
1366static JSValue js_std_tmpfile(JSContext *ctx, JSValueConst this_val,
1367 int argc, JSValueConst *argv)
1368{
1369 FILE *f;
1370 f = tmpfile();
1371 if (argc >= 1)
1372 js_set_error_object(ctx, argv[0], f ? 0 : errno);
1373 if (!f)
1374 return JS_NULL;
1375 return js_new_std_file(ctx, f, false);
1376}
1377#endif
1378
1379static JSValue js_std_sprintf(JSContext *ctx, JSValueConst this_val,

Callers

nothing calls this directly

Calls 2

js_set_error_objectFunction · 0.85
js_new_std_fileFunction · 0.85

Tested by

no test coverage detected