Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: invalid value Infinity for maxAge #104

Merged
merged 1 commit into from
Apr 22, 2020
Merged

Conversation

smondal
Copy link
Contributor

@smondal smondal commented Apr 14, 2020

Regarding issue #103, We should handle +Infinity and -Infinity for maxAge value

Copy link
Member

@jonchurch jonchurch left a comment

Choose a reason for hiding this comment

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

LGTM

index.js Outdated Show resolved Hide resolved
test/serialize.js Outdated Show resolved Hide resolved
test/serialize.js Outdated Show resolved Hide resolved
@dougwilson
Copy link
Contributor

I made a few suggestion, let us know what you think.

@smondal
Copy link
Contributor Author

smondal commented Apr 15, 2020

This is better solution. As per your suggestion fixes are added into pull request

@dougwilson dougwilson self-assigned this Apr 15, 2020
@smondal
Copy link
Contributor Author

smondal commented Apr 15, 2020

Travis is falling as isFinite is not supported by Nodejs 0.6 version

@dougwilson
Copy link
Contributor

Yea, I believe the updated recommendation was to use the isFinite global function instead of the Number.isFinite class function.

@smondal
Copy link
Contributor Author

smondal commented Apr 15, 2020

Let me try with global isFinite function.

@dougwilson dougwilson merged commit e248786 into jshttp:master Apr 22, 2020
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.

None yet

3 participants