| 56 | } |
| 57 | |
| 58 | void freeByteBuffer(JSRuntime* rt, void* opaque, void* /*ptr*/) { |
| 59 | auto* byteBuffer = dynamic_cast<Valdi::ByteBuffer*>(reinterpret_cast<Valdi::RefCountable*>(opaque)); |
| 60 | |
| 61 | JS_DecreaseExternallyAllocatedMemory(rt, byteBuffer->capacity()); |
| 62 | Valdi::unsafeBridgeRelease(opaque); |
| 63 | } |
| 64 | |
| 65 | static void handleRejectedPromise( |
| 66 | JSContext* ctx, JSValueConst promise, JSValueConst reason, JS_BOOL is_handled, void* opaque) { |
nothing calls this directly
no test coverage detected