Skip to content

Support objects from other contexts in t.valueToNode#13275

Merged
nicolo-ribaudo merged 3 commits intobabel:mainfrom
nicolo-ribaudo:regression-13263
May 7, 2021
Merged

Support objects from other contexts in t.valueToNode#13275
nicolo-ribaudo merged 3 commits intobabel:mainfrom
nicolo-ribaudo:regression-13263

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

@nicolo-ribaudo nicolo-ribaudo commented May 6, 2021

Q                       A
Fixed Issues? Fixes #13263
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

I think this is the same as what lodash does at https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/isPlainObject.js#L37-L41, but in a less complicated way.

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: types i: regression labels May 6, 2021
@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented May 6, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 943cd77:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration
valueToNode-bug-report Issue #13263

@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented May 6, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/45921/

Comment thread packages/babel-types/test/regressions.js Outdated
Comment thread packages/babel-types/test/regressions.js Outdated
@nicolo-ribaudo nicolo-ribaudo merged commit 4c725f8 into babel:main May 7, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the regression-13263 branch May 7, 2021 10:34
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Aug 7, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: types PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: @babel/types valueToNode throws error on plain object from different context

5 participants