Hacker News new | ask | show | jobs
by Jtsummers 3569 days ago
So you have a massive switch/case like:

  switch(JSON.someparam) {
    case A: //code to translate A_server -> A_client
    case B: //code to translate B_server -> B_client
    ...
  }
Check all your cases have breaks? That you didn't accidentally introduce a new variable into your scope or clobber a variable already in scope?