| 1249 | } |
| 1250 | |
| 1251 | static void js_set_error_object(JSContext *ctx, JSValueConst obj, int err) |
| 1252 | { |
| 1253 | if (!JS_IsUndefined(obj)) { |
| 1254 | JS_SetPropertyStr(ctx, obj, "errno", JS_NewInt32(ctx, err)); |
| 1255 | } |
| 1256 | } |
| 1257 | |
| 1258 | static JSValue js_std_open(JSContext *ctx, JSValueConst this_val, |
| 1259 | int argc, JSValueConst *argv) |
no test coverage detected