rchipka/kudzu

Evaluation errors

Opened this issue · 0 comments

Hello,
Thanks for this very nice esprima-based evaluator.
Unfortunately, the information given on the readme does not work (I run Node 10.16.0)
After replacing the three dots by a simple expression (e.g. "1"), I get the following problems

> new kudzu.Scope(globals)

globals is not defined, neither is esEval.Scope. The workaround I found was to actually just call new kudzu();

> scope.walk(esprima.parse("1"), r => console.log(r))
Program
Thrown:
TypeError: TOKENS[node.type] is not a function

Note' I just reopened the issue from esprima-eval, I did not try the above.