fix bug from optimization

This commit is contained in:
Pekka Laiho 2020-12-05 09:48:17 +07:00
parent ff1ae7b2d4
commit 894bd96e06

View File

@ -149,7 +149,7 @@ class Evaller
}
}
$closure = function (...$args) use ($bindings, $ast, $env) {
$closure = function (...$args) use ($bindings, $ast, $env, $astData) {
$newEnv = new Env('closure', $env);
for ($i = 0; $i < count($bindings); $i++) {