| 1520 | } |
| 1521 | |
| 1522 | static 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 | |
| 1531 | static JSValue js_std_file_clearerr(JSContext *ctx, JSValueConst this_val, |
| 1532 | int argc, JSValueConst *argv) |
nothing calls this directly
no test coverage detected