mondo: remember pair locations
+ allow passing a scope to MondoRunner.run + make def a side effect + proper lambda with multiple args + closure
This commit is contained in:
parent
f2372e7a41
commit
94a3a60e49
3 changed files with 38 additions and 31 deletions
|
|
@ -27,7 +27,7 @@ function evaluator(node) {
|
|||
// children in a list will already be evaluated
|
||||
// the first child is expected to be a function
|
||||
if (typeof fn !== 'function') {
|
||||
throw new Error(`"${fn}" is not a function ${typeof fn}`);
|
||||
throw new Error(`"${fn}" is not a function`);
|
||||
}
|
||||
return fn(...args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue