From 247ac10f17ed48d51b6bd14794b30216618f12d2 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 7 Dec 2018 14:08:32 +0100 Subject: [PATCH] Fixed BadExpression throwing exceptions --- Upsilon/Binder/Binder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 8b69057..d39a5ff 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -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: