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()),
|
kind: ErrorKind::MeloVariable(name.item.to_owned()),
|
||||||
span: name.span.clone(),
|
span: name.span.clone(),
|
||||||
}),
|
}),
|
||||||
None => Err(Error {
|
None => Ok(Value::Undefined),
|
||||||
kind: ErrorKind::UnknownVariable(name.item.to_owned()),
|
|
||||||
span: name.span.clone(),
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue