mirror of https://github.com/Baidicoot/rpncalc-v4
fixed definitions
This commit is contained in:
parent
ea57cc4cc5
commit
a1bacc3988
|
@ -0,0 +1 @@
|
|||
tests.txt.js
|
2
eval.js
2
eval.js
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue