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

fix: allow null/undefined options #1581

Merged
merged 2 commits into from
Sep 19, 2018
Merged

fix: allow null/undefined options #1581

merged 2 commits into from
Sep 19, 2018

Conversation

alanshaw
Copy link
Member

Options should be optional! Our API should be flexible enough to allow passing null or undefined in place of an options object. This PR fixes cases where we assume an options object has been passed.

fixes: #1574

@ghost ghost assigned alanshaw Sep 18, 2018
@ghost ghost added the status/in-progress In progress label Sep 18, 2018
Alan Shaw added 2 commits September 18, 2018 16:28
Options should be optional! Our API should be flexible enough to allow passing null or undefined in place of an options object. This PR fixes cases where we assume an options object has been passed.

fixes: #1574

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

👍

@alanshaw alanshaw merged commit c73bd2f into master Sep 19, 2018
@ghost ghost removed the status/in-progress In progress label Sep 19, 2018
@alanshaw alanshaw deleted the fix/allow-null-options branch September 19, 2018 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing null/undefined for options crashes node
2 participants