1. Set a proper data type when compiling closure.
All checks were successful
The build was successful.
All checks were successful
The build was successful.
2. Temporarily allow to call a closure/function if its name is stored in a variable of callback or string type. Ultimately, only callback will be allowed.
This commit is contained in:
@@ -4831,7 +4831,7 @@ static sxi32 VmByteCodeExec(
|
||||
SyHashEntry *pEntry;
|
||||
SyString sName;
|
||||
/* Extract function name */
|
||||
if((pTos->iFlags & MEMOBJ_STRING) == 0) {
|
||||
if((pTos->iFlags & (MEMOBJ_CALL | MEMOBJ_STRING)) == 0) {
|
||||
if(pTos->iFlags & MEMOBJ_HASHMAP) {
|
||||
ph7_value sResult;
|
||||
SySetReset(&aArg);
|
||||
|
Reference in New Issue
Block a user