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

7.13 _Object$getOwnPropertySymbols is not defined #12860

Closed
zllkjc opened this issue Feb 23, 2021 · 2 comments
Closed

7.13 _Object$getOwnPropertySymbols is not defined #12860

zllkjc opened this issue Feb 23, 2021 · 2 comments
Labels
i: bug i: needs triage i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@zllkjc
Copy link

zllkjc commented Feb 23, 2021

Bug Report

Hello

Current behavior
My project use @babel/plugin-transform-runtime in rollup

After build my package,the following code is inserted

function ownKeys(object, enumerableOnly) { 
   var keys = _Object$keys2(object); 
   if (_Object$getOwnPropertySymbols) { 
      var symbols = _Object$getOwnPropertySymbols(object);
  }
 // other code...
}

but _Object$getOwnPropertySymbols is not defined in v7.13.2

Expected behavior
rollback @babel/plugin-transform-runtime v7.12.17 , everything is right

the following code is inserted

var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
`` 

**question**

is there some new API in v7.13 

or is it a bug ?
  • Babel version(s): v7.13.2
  • Node/npm version: Node 12
  • OS: macOS
  • Monorepo: yes
  • How you are using Babel: rollup
@babel-bot
Copy link
Collaborator

Hey @zllkjc! 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."

@nicolo-ribaudo
Copy link
Member

This is the same as #12863. It should be fixed, I'm waiting for someone to confirm it.

@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 May 26, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: bug i: needs triage i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants