Skip to content

Backport new callee changes#18047

Merged
JLHwung merged 2 commits into
babel:7.xfrom
JLHwung:new-callee-7.x
Jun 10, 2026
Merged

Backport new callee changes#18047
JLHwung merged 2 commits into
babel:7.xfrom
JLHwung:new-callee-7.x

Conversation

@JLHwung

@JLHwung JLHwung commented Jun 4, 2026

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

Backport #17871 and #18046.

Please use "Rebase and Merge".

@babel-bot

babel-bot commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

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

@pkg-pr-new

pkg-pr-new Bot commented Jun 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 39f38e0

@JLHwung JLHwung requested a review from liuxingbaoyu June 9, 2026 14:47
JLHwung added 2 commits June 9, 2026 17:05
* fix(parser): disallow super() after new

* fix(generator): update new callee parenthese rules

* fix: disallow super/import after bind operator

* update typescript parser test allowlist

* fix(types): disallow import/super/v8Intrinsic as callee of new expression

* chore: fix lint error

* add new test cases

* update test cases
# Conflicts:
#	packages/babel-parser/src/parse-error.ts
#	packages/babel-parser/src/parser/expression.ts
#	packages/babel-parser/src/types.ts
#	packages/babel-parser/typings/babel-parser.d.ts
#	packages/babel-types/src/ast-types/generated/index.ts
#	packages/babel-types/src/builders/generated/lowercase.ts
#	scripts/parser-tests/typescript/allowlist.txt
@JLHwung JLHwung merged commit 39f38e0 into babel:7.x Jun 10, 2026
66 checks passed
@JLHwung JLHwung deleted the new-callee-7.x branch June 10, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants