From 1bc3930df811930ef3e0580714f2fc032e995491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 21 Dec 2022 17:09:02 +0100 Subject: [PATCH] refactor(core): Allow `null` instead of `SyntaxError` in expression (#4998) :zap: Allow `null` instead of `SyntaxError` --- packages/workflow/src/Expression.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/workflow/src/Expression.ts b/packages/workflow/src/Expression.ts index e9fd930c9e..6085e9625e 100644 --- a/packages/workflow/src/Expression.ts +++ b/packages/workflow/src/Expression.ts @@ -278,10 +278,6 @@ export class Expression { throw error; } } - - if (error instanceof Error && error.name === 'SyntaxError') { - throw new Error('invalid syntax'); - } } return null;