Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Errors throw from $onChanges result in an array passed to $exceptionHandler #15578

Closed
@jbedard

Description

@jbedard

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions