Trying in to test with node-icecream package. I copied the code straight from npm. It fails when I run it in runkit.
However, if I try the code in repl.it it runs (https://repl.it/@mohrepl/Test#index.js).
const ic = require('node-icecream')();
function foo() {
ic();
// For example purposes only
if (true) {
ic();
return 'bar';
}
ic();
return 'something is wrong';
}
ic(foo());