vm: add InteropItem type for interop data

This is an opaque data item that is to be used by the interop functions.
This commit is contained in:
Roman Khimov 2019-10-01 20:11:01 +03:00
parent da2156f955
commit cfa0c13322
2 changed files with 29 additions and 0 deletions

View file

@ -92,6 +92,8 @@ func (e *Element) Bool() bool {
}
}
return false
case *InteropItem:
return t.value != nil
default:
panic("can't convert to bool: " + t.String())
}