Make TRY_CALL work with native functions AND a debug helper #2
|
|
@ -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