forked from AbleScript/ablescript
Evaluating nonextant variable results into Undefined
This commit is contained in:
parent
e85f766a1d
commit
9f91a72b01
|
@ -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