You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior/code
As you can see at the REPL link above, babel tries to remove 'undefined' properties from the initialObject, resulting in rest containing all of the initialObject's properties. If you were to paste that code into chrome devtools, rest would correctly only contain familyGuy.
Hey @noahgrant! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
Bug Report
Current Behavior
Assigning object values to dynamic variables while using object rest syntax results in transpiling code that looks like:
Input Code
here's a link to a complete reproduction in the REPL at babeljs.io. I've also included a screenshot below.
Expected behavior/code
As you can see at the REPL link above, babel tries to remove
'undefined'
properties from theinitialObject
, resulting inrest
containing all of theinitialObject
's properties. If you were to paste that code into chrome devtools,rest
would correctly only containfamilyGuy
.Babel Configuration (.babelrc, package.json, cli command)
The config is built-in to the REPL at the link above, but the
preset-env
is using the following browsers:Chrome >= 67, Firefox >= 63, Edge >= 17, Opera >= 57, Safari >= 11.1
Environment
The text was updated successfully, but these errors were encountered: