Skip to content

Commit 4842185

Browse files
committed
quickjs_compat.h: Added a compat macro for Js_IsError for quickjs-ng
Since 57fffbbb6a98b316e5195ff31655cd13db2bfa5b ("Remove unused JSContext argument from JS_IsError")[1], QuickJS-NG's JS_IsError() takes only the value parameter, no context. [1]: quickjs-ng/quickjs@57fffbb Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
1 parent c7bd5f4 commit 4842185

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/quickjs_compat.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@
2222
#ifndef JS_BOOL
2323
#define JS_BOOL bool
2424
#endif
25+
26+
#ifdef QUICKJS_NG
27+
#define JS_IsError(cx, val) JS_IsError(val)
28+
#endif

0 commit comments

Comments
 (0)