We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8250d4 commit 4fefd3eCopy full SHA for 4fefd3e
xs/sources/xsAPI.c
@@ -644,7 +644,7 @@ txSlot* fxNewHostInstance(txMachine* the)
644
the->stack->kind = XS_REFERENCE_KIND;
645
if (prototype) {
646
txSlot* prototypeHost = prototype->next;
647
- if (prototypeHost && (prototypeHost->kind == XS_HOST_KIND)) {
+ if (prototypeHost && (prototypeHost->kind == XS_HOST_KIND) && (prototypeHost->value.host.variant.destructor != fxReleaseSharedChunk)) {
648
txSlot* instanceHost = instance->next = fxNewSlot(the);
649
instanceHost->flag = XS_INTERNAL_FLAG;
650
instanceHost->kind = XS_HOST_KIND;
0 commit comments