refactor(core): Allow null instead of SyntaxError in expression (#4998)

 Allow `null` instead of `SyntaxError`
This commit is contained in:
Iván Ovejero 2022-12-21 17:09:02 +01:00 committed by GitHub
parent d60a815a44
commit 1bc3930df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -278,10 +278,6 @@ export class Expression {
throw error;
}
}
if (error instanceof Error && error.name === 'SyntaxError') {
throw new Error('invalid syntax');
}
}
return null;