| 2986 | #endif // defined(_WIN32) |
| 2987 | |
| 2988 | static JSValue make_obj_error(JSContext *ctx, |
| 2989 | JSValue obj, |
| 2990 | int err) |
| 2991 | { |
| 2992 | JSValue vals[2]; |
| 2993 | |
| 2994 | if (JS_IsException(obj)) |
| 2995 | return obj; |
| 2996 | vals[0] = obj; |
| 2997 | vals[1] = JS_NewInt32(ctx, err); |
| 2998 | return JS_NewArrayFrom(ctx, countof(vals), vals); |
| 2999 | } |
| 3000 | |
| 3001 | static JSValue make_string_error(JSContext *ctx, |
| 3002 | const char *buf, |
no test coverage detected