return -1 for JS_EXCEPTION */
| 847 | JS_EXTERN JSValue JS_DupValueRT(JSRuntime *rt, JSValueConst v); |
| 848 | JS_EXTERN int JS_ToBool(JSContext *ctx, JSValueConst val); /* return -1 for JS_EXCEPTION */ |
| 849 | static inline JSValue JS_ToBoolean(JSContext *ctx, JSValueConst val) |
| 850 | { |
| 851 | return JS_NewBool(ctx, JS_ToBool(ctx, val)); |
| 852 | } |
| 853 | JS_EXTERN JSValue JS_ToNumber(JSContext *ctx, JSValueConst val); |
| 854 | JS_EXTERN int JS_ToInt32(JSContext *ctx, int32_t *pres, JSValueConst val); |
| 855 | static inline int JS_ToUint32(JSContext *ctx, uint32_t *pres, JSValueConst val) |
nothing calls this directly
no test coverage detected