fix(zone.js): disable wrap uncaught promise rejection should handle primitive value (#38476)
Close #38334. zone.js provides a flag DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION to let zone.js throw the original error instead of wrap it when uncaught promise rejection found. But the rejection value could be anything includes primitive value such as number. In that case, we should not attach any additional properties to the value. PR Close #38476
This commit is contained in:

committed by
Alex Rickabaugh

parent
8236904933
commit
9d918d8e6c
@ -383,6 +383,7 @@ interface UncaughtPromiseError extends Error {
|
||||
task: Task;
|
||||
promise: Promise<any>;
|
||||
rejection: any;
|
||||
throwOriginal?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user