Fixed BadExpression throwing exceptions

This commit is contained in:
Deukhoofd 2018-12-07 14:08:32 +01:00
parent 97968ef491
commit 247ac10f17
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ namespace Upsilon.Binder
case SyntaxKind.FunctionExpression: case SyntaxKind.FunctionExpression:
return BindFunctionExpression((FunctionExpressionSyntax) e); return BindFunctionExpression((FunctionExpressionSyntax) e);
case SyntaxKind.BadExpression: case SyntaxKind.BadExpression:
break; return new BoundLiteralExpression(new ScriptNull(), e.Span);
case SyntaxKind.ScriptUnit: case SyntaxKind.ScriptUnit:
break; break;
default: default: