From aa76066c431251166f63fe83808ecfe7fa7b8822 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 7 Jan 2016 23:51:46 -0800 Subject: [PATCH 1/1] Better document and assert against a pooling case. --- ObjectiveC/Library.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index ca3662b..0a93fdd 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -1535,7 +1535,8 @@ static NSBlock *CYCastNSBlock(CYPool &pool, JSContextRef context, JSValueRef val namespace sig { void Block::PoolFFI(CYPool *pool, JSContextRef context, ffi_type *ffi, void *data, JSValueRef value) const { - // XXX: this function might not handle the idea of a null pool + // XXX: this function actually needs to handle null pools as it is an autorelease + _assert(pool != NULL); *reinterpret_cast(data) = CYCastNSBlock(*pool, context, value, &signature); } -- 2.47.2