Skip to content

Conversation

@hanayuki
Copy link
Contributor

I got ReferenceError when data doesn't match pattern because variable name used in error and function parameter name are different (value vs text)
Changed value to text for all functions whose parameter name is text but reference with value

@highsource
Copy link
Owner

Thank you!

Could you please also try to add a unit test for this? Just for completeness sake.

@hanayuki
Copy link
Contributor Author

Thank you for the comment!
Added tests for error cases for all parseXXX in Calendar.js (not only the functions I modified) for completeness.

@highsource highsource self-assigned this Feb 17, 2019
@highsource highsource added the bug label Feb 17, 2019
@highsource highsource added this to the 2.4.2 milestone Feb 17, 2019
@highsource highsource changed the base branch from master to issue-210 February 17, 2019 16:25
@highsource highsource merged commit 5468396 into highsource:issue-210 Feb 17, 2019
highsource added a commit that referenced this pull request Feb 17, 2019
highsource added a commit that referenced this pull request Feb 17, 2019
@highsource highsource requested review from highsource and removed request for highsource March 18, 2019 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants