mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Check if critical error before throwing
This commit is contained in:
@@ -278,9 +278,8 @@ export function compileProgram(
|
||||
memoSlots: compiledFn.memoSlotsUsed,
|
||||
});
|
||||
} catch (err) {
|
||||
handleError(pass, fn.node.loc ?? null, err);
|
||||
|
||||
hasCriticalError ||= isCriticalError(err);
|
||||
handleError(pass, fn.node.loc ?? null, err);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user