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

Function js_std_file_eof

deps/quickjs/quickjs-libc.c:1513–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1511}
1512
1513static JSValue js_std_file_eof(JSContext *ctx, JSValueConst this_val,
1514 int argc, JSValueConst *argv)
1515{
1516 FILE *f = js_std_file_get(ctx, this_val);
1517 if (!f)
1518 return JS_EXCEPTION;
1519 return JS_NewBool(ctx, feof(f));
1520}
1521
1522static JSValue js_std_file_error(JSContext *ctx, JSValueConst this_val,
1523 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