1
0
mirror of https://github.com/Baidicoot/rpncalc-v4 synced 2024-12-04 23:39:56 +00:00

fixed definitions

This commit is contained in:
Aidan K. Ewart 2020-05-21 21:36:04 +01:00
parent ea57cc4cc5
commit a1bacc3988
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tests.txt.js

View File

@ -149,7 +149,7 @@ const doStep = (ins, stack) => {
if (instruction.type === "push") {
pushS(makeObj(instruction.elem), stack);
} else if (instruction.type === "defn") {
defn(ins.defn, ins.ident, stack);
defn(instruction.defn, instruction.ident, stack);
} else {
apply(makeObj(instruction), stack);
}