Preserve declared return types when cloning closures with captures
Build / AerScript (push) Successful in 9m0s

This commit is contained in:
2026-10-23 23:59:58 +02:00
parent 3c7f1b8f5b
commit 04a74de51a
+1
View File
@@ -2877,6 +2877,7 @@ static sxi32 VmByteCodeExec(
pClosure->iFlags = pFunc->iFlags;
pClosure->pUserData = pFunc->pUserData;
pClosure->sSignature = pFunc->sSignature;
pClosure->nType = pFunc->nType;
SyStringInitFromBuf(&pClosure->sName, zName, mLen);
/* Register the closure */
PH7_VmInstallUserFunction(pVm, pClosure, 0);