| 1364 | |
| 1365 | #if !defined(__wasi__) |
| 1366 | static 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 | |
| 1379 | static JSValue js_std_sprintf(JSContext *ctx, JSValueConst this_val, |
nothing calls this directly
no test coverage detected