Skip to content

Commit d462891

Browse files
committed
Updating proof solution
1 parent a3c5003 commit d462891

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

exercises/practice/forth/.meta/proof.ci.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ export class Forth {
6767

6868
performCommand(command) {
6969
if (command.arity > this.stack.length) {
70+
if (this.stack.length == 1) {
71+
throw new Error('Only one value on the stack');
72+
}
7073
throw new Error('Stack empty');
7174
}
7275

0 commit comments

Comments
 (0)