Errors throw from $onChanges result in an array passed to $exceptionHandler #15578
Description
Do you want to request a feature or report a bug?
bug?
What is the current behavior?
an error thrown in an $onChanges
method results in an array being thrown which will result in $exceptionHandler(arrayOfErrors)
What is the expected behavior?
Error
objects are passed to $exceptionHandler
What is the motivation / use case for changing the behavior?
make $exceptionHandler
more predictable / consistent / follow documentation
Which versions of Angular, and which browser / OS are affected by this issue? Did this work in previous versions of Angular? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.
1.5+
Other information (e.g. stacktraces, related issues, suggestions how to fix)
Maybe each error in the array is passed to $exceptionHandler
separately?
Maybe the array of errors is wrapped in an Error
before being thrown?
Or document that $exceptionHandler
might be passed an array?