Switch/Case bug #43

phzbox opened this Issue Apr 18, 2012 · 0 comments


None yet

1 participant

phzbox commented Apr 18, 2012


switch(1) {
  case 'a': console.log('..');

Gives this error:
 >> Error: Unexpected token: punc ({) (line: 0, col: 19, pos: 19)

Obviously, this is not real code. It was taken from a bigger file but I've tried to isolate the problem. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment