js helpers for migrating
This commit is contained in:
@@ -587,6 +587,11 @@ JSValue __js_printf_like (2, 3)
|
||||
|
||||
/* Log to "memory" channel + disrupt. Skips JS callback (can't allocate). */
|
||||
JSValue JS_RaiseOOM (JSContext *ctx);
|
||||
#define JS_ThrowOutOfMemory JS_RaiseOOM
|
||||
#define JS_ThrowReferenceError JS_RaiseDisrupt
|
||||
#define JS_ThrowTypeError JS_RaiseDisrupt
|
||||
#define JS_ThrowInternalError JS_RaiseDisrupt
|
||||
#define JS_ThrowRangeError JS_RaiseDisrupt
|
||||
|
||||
/* ============================================================
|
||||
8. Function Creation and Invocation
|
||||
|
||||
Reference in New Issue
Block a user