From 052649e67719cf52f09666e724d77da1b7c2718e Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 15 Aug 2018 14:12:44 +0200 Subject: [PATCH] Trust builtin library. The builtin library should compile successfully. Otherwise, we want to know about it. --- engine/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/vm.c b/engine/vm.c index dd99aaf..b8c932e 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -1281,7 +1281,7 @@ PH7_PRIVATE sxi32 PH7_VmInit( pVm->nMagic = PH7_VM_INIT; SyStringInitFromBuf(&sBuiltin, PH7_BUILTIN_LIB, sizeof(PH7_BUILTIN_LIB) - 1); /* Compile the built-in library */ - VmEvalChunk(&(*pVm), 0, &sBuiltin, PH7_AERSCRIPT_CODE, FALSE); + VmEvalChunk(&(*pVm), 0, &sBuiltin, PH7_AERSCRIPT_CODE, TRUE); /* Reset the code generator */ PH7_ResetCodeGenerator(&(*pVm), pEngine->xConf.xErr, pEngine->xConf.pErrData); return SXRET_OK; @@ -10432,7 +10432,7 @@ static sxi32 VmEvalChunk( SySetAlloc(&aByteCode, 0x20); /* Reset the code generator */ if(bTrueReturn) { - /* Included file,log compile-time errors */ + /* Log compile-time errors */ xErr = pVm->pEngine->xConf.xErr; pErrData = pVm->pEngine->xConf.pErrData; }