Which @angular/* package(s) are the source of the bug?
zone.js
Is this a regression?
Yes
Description
As the image below shows, when I call Promise.all with a callback, when the returns of the callback include a property named then, it will throw an error...
I check the source code of zone.js, the function isThenable in the file packages/zone.js/lib/common/promise.ts is not very robust. I'm not sure why not check if .then is a function?
Look forward to your response, thanks a lot.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run ng version)
No response
Anything else?
No response
Which @angular/* package(s) are the source of the bug?
zone.js
Is this a regression?
Yes
Description
As the image below shows, when I call
Promise.allwith a callback, when the returns of the callback include a property namedthen, it will throw an error...I check the source code of zone.js, the function
isThenablein the filepackages/zone.js/lib/common/promise.tsis not very robust. I'm not sure why not check if.thenis a function?Look forward to your response, thanks a lot.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version)No response
Anything else?
No response