mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Allow null instead of SyntaxError in expression (#4998)
⚡ Allow `null` instead of `SyntaxError`
This commit is contained in:
@@ -278,10 +278,6 @@ export class Expression {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error instanceof Error && error.name === 'SyntaxError') {
|
|
||||||
throw new Error('invalid syntax');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user