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

Function js_std_file_error

deps/quickjs/quickjs-libc.c:1522–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1520}
1521
1522static JSValue js_std_file_error(JSContext *ctx, JSValueConst this_val,
1523 int argc, JSValueConst *argv)
1524{
1525 FILE *f = js_std_file_get(ctx, this_val);
1526 if (!f)
1527 return JS_EXCEPTION;
1528 return JS_NewBool(ctx, ferror(f));
1529}
1530
1531static JSValue js_std_file_clearerr(JSContext *ctx, JSValueConst this_val,
1532 int argc, JSValueConst *argv)

Callers

nothing calls this directly

Calls 2

js_std_file_getFunction · 0.85
JS_NewBoolFunction · 0.85

Tested by

no test coverage detected