mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix some error handling in FunC (#599)
This commit is contained in:
parent
653c88aa9d
commit
c6143715cc
5 changed files with 33 additions and 15 deletions
|
@ -355,6 +355,9 @@ std::vector<var_idx_t> Expr::pre_compile(CodeBlob& code, std::vector<std::pair<S
|
|||
return args[0]->pre_compile(code, lval_globs);
|
||||
case _Var:
|
||||
case _Hole:
|
||||
if (val < 0) {
|
||||
throw src::ParseError{here, "unexpected variable definition"};
|
||||
}
|
||||
return {val};
|
||||
case _VarApply:
|
||||
if (args[0]->cls == _Glob) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue