Skip to content

[4.x] fix(core): stringify shouldn't throw when toString returns null/undefined#14975

Closed
DzmitryShylovich wants to merge 1 commit intoangular:masterfrom
DzmitryShylovich:gh/4.x/14948
Closed

[4.x] fix(core): stringify shouldn't throw when toString returns null/undefined#14975
DzmitryShylovich wants to merge 1 commit intoangular:masterfrom
DzmitryShylovich:gh/4.x/14948

Conversation

@DzmitryShylovich
Copy link
Copy Markdown
Contributor

Fixes #14948

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect(stringify({toString => undefined})).toBe('undefined');

Copy link
Copy Markdown
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could simplify the test

@vicb vicb added area: core Issues related to the framework runtime action: merge The PR is ready for merge by the caretaker labels Mar 21, 2017
@DzmitryShylovich
Copy link
Copy Markdown
Contributor Author

DzmitryShylovich commented Mar 21, 2017

@vicb done. simplified the tests + rebase

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string -> any

@vicb
Copy link
Copy Markdown
Contributor

vicb commented Mar 21, 2017

@DzmitryShylovich thanks ! Could you please update the return type

@DzmitryShylovich
Copy link
Copy Markdown
Contributor Author

@vicb done

@mhevery mhevery closed this in 8e6995c Mar 21, 2017
asnowwolf pushed a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 28, 2017
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stringify fails if token.toString() returns undefined

4 participants