forked from AbleScript/ablescript
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()),
|
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