Fix default context value

This commit is contained in:
yuanchuan 2021-10-25 09:27:32 +08:00
parent 0673027994
commit 28d2bd6fde
1 changed files with 2 additions and 2 deletions

View File

@ -73,9 +73,9 @@ export default function(random) {
match({ count, grid, x, y }) {
return expr => {
return !!calc(expr, {
return !!calc('(' + expr + ')', {
x, y,
X: grid.x, Y: grid.Y,
X: grid.x, Y: grid.y,
i: count,
});
}