javascript-playground icon indicating copy to clipboard operation
javascript-playground copied to clipboard

bug when dividing with a empty stack

Open justlucdewit opened this issue 5 years ago • 0 comments

i know its kindof wierd to divide with an empty stack, but what the compiler does should not be happening at all, if you input the code

/@

it will put NaN in the stack 🤔 i'd suggest either printing some sort of error and not putting anything in the stack

what you are currently doing in your code is dividing 0/0 (scince befunge defaults a empty stack to 0) and 0/0 is not possible afbeelding

justlucdewit avatar Dec 05 '19 19:12 justlucdewit