Evaluating nonextant variable results into Undefined
This commit is contained in:
parent
bda92cc2f7
commit
d97d940d23
|
@ -539,10 +539,7 @@ impl ExecEnv {
|
|||
kind: ErrorKind::MeloVariable(name.item.to_owned()),
|
||||
span: name.span.clone(),
|
||||
}),
|
||||
None => Err(Error {
|
||||
kind: ErrorKind::UnknownVariable(name.item.to_owned()),
|
||||
span: name.span.clone(),
|
||||
}),
|
||||
None => Ok(Value::Undefined),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue