8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e67df03 commit 5b40c15Copy full SHA for 5b40c15
lib/parser.js
@@ -667,7 +667,8 @@ var Parser = exports.Parser = Class.extend({
667
if (! (labelExpr instanceof NullExpression
668
|| labelExpr instanceof BooleanLiteralExpression
669
|| labelExpr instanceof IntegerLiteralExpression
670
- || labelExpr instanceof NumberLiteralExpression)) {
+ || labelExpr instanceof NumberLiteralExpression
671
+ || labelExpr instanceof StringLiteralExpression)) {
672
this._newError("case label is not a constant");
673
return false;
674
}
0 commit comments