mirror of
https://github.com/Baidicoot/rpncalc-v4
synced 2025-08-31 15:27:55 +00:00
fixed definitions
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user