Fixed BadExpression throwing exceptions
This commit is contained in:
parent
97968ef491
commit
247ac10f17
|
@ -128,7 +128,7 @@ namespace Upsilon.Binder
|
|||
case SyntaxKind.FunctionExpression:
|
||||
return BindFunctionExpression((FunctionExpressionSyntax) e);
|
||||
case SyntaxKind.BadExpression:
|
||||
break;
|
||||
return new BoundLiteralExpression(new ScriptNull(), e.Span);
|
||||
case SyntaxKind.ScriptUnit:
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue