Fixed BadExpression throwing exceptions
This commit is contained in:
parent
97968ef491
commit
247ac10f17
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue