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

fix(test): fix #1155, try/catch modify error.message#1157

Merged
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:mocha-error
Mar 12, 2019
Merged

fix(test): fix #1155, try/catch modify error.message#1157
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:mocha-error

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Collaborator

fix #1155.

In some test cases, the user may throw an error with an unconfigurable or readonly message property, so we should try/catch when we want to add some additional information to the message there.

@mhevery mhevery merged commit 7e983d1 into angular:master Mar 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot assign to read only property 'message'

4 participants