quickjs/builtins/js-disposable.h
2026-04-30 18:52:33 +03:00

25 lines
595 B
C

#ifndef JS_DISPOSABLE_H
#define JS_DISPOSABLE_H
#include "quickjs.h"
#ifdef __cplusplus
extern "C" {
#endif
JSValue JS_NewSuppressedError(JSContext *ctx, JSValueConst error, JSValueConst suppressed);
JSValue JS_GetSuppressedErrorError(JSContext *ctx, JSValueConst obj);
JSValue JS_GetSuppressedErrorSuppressed(JSContext *ctx, JSValueConst obj);
JSAtom JS_AtomSymbolDispose(JSContext *ctx);
JSAtom JS_AtomSymbolAsyncDispose(JSContext *ctx);
int JS_CallDispose(JSContext *ctx, JSValueConst obj);
int JS_CallAsyncDispose(JSContext *ctx, JSValueConst obj);
#ifdef __cplusplus
}
#endif
#endif