4 ms·
I don't understand the env in which this happened, because cracking open my console, I get > [5, 4, 5, 1].sort().join('') > "1455"
by dclowd9901 9y ago
I don't understand the env in which this happened, because cracking open my console, I get
> [5, 4, 5, 1].sort().join('')
> "1455"
- jontro 9y agoThey are using a sandboxed javascript interpreter. https://github.com/code-dot-org/JS-Interpreter https://github.com/code-dot-org/JS-Interpreter See the pull request here https://github.com/code-dot-org/JS-Interpreter/pull/23 https://github.com/code-dot-org/JS-Interpreter/pull/23
- jandrese 9y agoBasically, the chance that it is a compiler bug is proportional to the inverse of the number of people using it. You probably didn't find a bug in gcc. It's definitely possible that you found a bug in some bespoke javascript interpreter that few people have ever even heard of.