kaffeine icon indicating copy to clipboard operation
kaffeine copied to clipboard

Switch/Case bug

Open phzbox opened this issue 14 years ago • 0 comments

This:

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!


phzbox avatar Apr 18 '12 02:04 phzbox