diff --git a/engine/vm.c b/engine/vm.c index dcaeeb0..9119ae0 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -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);