fork(1) download
  1. function foo(x){
  2. return [x + 1, null];
  3. }
  4.  
  5. var x = 5;
  6. if (x % 2 == 1 ){
  7. var [x,y]=foo(x);
  8. if (y!=null){
  9. console.fatal("Error");
  10. }
  11. console.log(x);
  12. }
  13. console.log(x);
Success #stdin #stdout 0.03s 17072KB
stdin
Standard input is empty
stdout
6
6