TRY_CALL recognizes native functions
This commit is contained in:
parent
fa55eb7170
commit
7f4f73dd41
|
|
@ -386,7 +386,7 @@ export class VM {
|
|||
const varName = instruction.operand as string
|
||||
const value = this.scope.get(varName)
|
||||
|
||||
if (value?.type === 'function') {
|
||||
if (value?.type === 'function' || value?.type === 'native') {
|
||||
this.stack.push(value)
|
||||
this.stack.push(toValue(0))
|
||||
this.stack.push(toValue(0))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user