We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c5003 commit d462891Copy full SHA for d462891
exercises/practice/forth/.meta/proof.ci.js
@@ -67,6 +67,9 @@ export class Forth {
67
68
performCommand(command) {
69
if (command.arity > this.stack.length) {
70
+ if (this.stack.length == 1) {
71
+ throw new Error('Only one value on the stack');
72
+ }
73
throw new Error('Stack empty');
74
}
75
0 commit comments