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

transformer: object rest spread remaining issues #7389

Open
6 tasks
Boshen opened this issue Nov 21, 2024 · 0 comments
Open
6 tasks

transformer: object rest spread remaining issues #7389

Boshen opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
C-enhancement Category - New feature or request

Comments

@Boshen
Copy link
Member

Boshen commented Nov 21, 2024

  • suboptimal output for ({ a2, ...b2 } = c2)
var _c;
_c = c2, {a2} = _c, b2 = babelHelpers.objectWithoutProperties(_c, ["a2"]), _c;
                                                 // This should be removed ^^
  • incorrect transform for ({ ...x }, y = x) => { }
(_ref, y = x) => {
        // ^ Need to handle this assignment
	let x = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref));
};
  • compiler assumption objectRestNoSymbols
  • compiler assumption ignoreFunctionLength
  • option loose
  • useBuiltIns
@Boshen Boshen added the C-enhancement Category - New feature or request label Nov 21, 2024
@Boshen Boshen self-assigned this Nov 21, 2024
@Boshen Boshen added this to the Transformer Milestone 2 milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category - New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant