| 1673 | } |
| 1674 | |
| 1675 | static JSValue js_std_file_getByte(JSContext *ctx, JSValueConst this_val, |
| 1676 | int argc, JSValueConst *argv) |
| 1677 | { |
| 1678 | FILE *f = js_std_file_get(ctx, this_val); |
| 1679 | if (!f) |
| 1680 | return JS_EXCEPTION; |
| 1681 | return JS_NewInt32(ctx, fgetc(f)); |
| 1682 | } |
| 1683 | |
| 1684 | static JSValue js_std_file_putByte(JSContext *ctx, JSValueConst this_val, |
| 1685 | int argc, JSValueConst *argv) |
nothing calls this directly
no test coverage detected