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

Revise second condition in is_plain_object #5411

Merged
merged 1 commit into from
Jan 15, 2021
Merged

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Jan 15, 2021

Resolves #5151 thanks to @alexcjohnson's second suggestion in #5151 (comment).

cc: #5395

@plotly/plotly_js

@archmoj archmoj added this to the NEXT milestone Jan 15, 2021
@archmoj
Copy link
Contributor Author

archmoj commented Jan 15, 2021

FYI - I locally tested #5151 (comment) and it works with the proposed change.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Excellent. Looks like we already have good unit tests for this in https://github.com/plotly/plotly.js/blob/master/test/jasmine/tests/is_plain_object_test.js. I can't think of an easy way to add a cross-context test, for the precise problem discussed in #5151 so I guess this is all we need! 💃

@archmoj archmoj merged commit 997946b into master Jan 15, 2021
@archmoj archmoj deleted the revisit-isPlainObject branch January 15, 2021 15:39
@archmoj archmoj mentioned this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation fails when running via JsDom in NodeJs
2 participants