-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Bug]: Position includes index = undefined #14182
Copy link
Copy link
Closed
Labels
i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
💻
- Would you like to work on a fix?
How are you using Babel?
Programmatic API (babel.transform, babel.parse)
Input code
After moving everything over to the WeakMap system, I forgot to remove the declaration, so the latest release of Babel includes an undefined index property: https://github.com/babel/babel/blob/main/packages/babel-parser/src/util/location.js#L13
Apologies! Should I just do a commit removing it?
Configuration file name
No response
Configuration
No response
Current and expected behavior
Expected: Shouldn't have an index property
Current: Has an index property.
Environment
- Babel: 7.16.10
Possible solution
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue