Catch empty input
This commit is contained in:
parent
ef9e72cdcd
commit
5c6e78eab5
@ -66,6 +66,8 @@ function Lisp (input, lib) {
|
||||
}
|
||||
|
||||
const interpret = function (input, context) {
|
||||
if (!input) { return null }
|
||||
|
||||
if (context === undefined) {
|
||||
return interpret(input, new Context(lib))
|
||||
} else if (input instanceof Array) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user