| 1511 | } |
| 1512 | |
| 1513 | static 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 | |
| 1522 | static JSValue js_std_file_error(JSContext *ctx, JSValueConst this_val, |
| 1523 | int argc, JSValueConst *argv) |
nothing calls this directly
no test coverage detected