-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
decorator
of method in hoc lead to runtime error after compilation
#9350
Comments
@kdy1 @magic-akari I‘m using v1.7.6 of swc in the |
All crates depending on swc_ecma_transforms_proposal need to be updated, but swc_core has not been updated. @kdy1 |
I verified that it's applied in the SWC playground |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
the
Design.prototype
parameter of_ts_decorate
method is undefined in scopethe compiled code can not run in browser
![image](https://private-user-images.githubusercontent.com/52249626/353682876-2ad2cf45-fb75-4d58-aa79-a1245ea18080.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTc4NzYsIm5iZiI6MTczOTY1NzU3NiwicGF0aCI6Ii81MjI0OTYyNi8zNTM2ODI4NzYtMmFkMmNmNDUtZmI3NS00ZDU4LWFhNzktYTEyNDVlYTE4MDgwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIyMTI1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmOTE5OWM5NTM3YTBlMjdiMjRjM2FiYTQ5NWJiNjIxNDMyMTFlMmI0MmY0MDhlNzZiOTJlOWJiMWMzYmFkMTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._ZuXWatfz2cIe-oqng_QVX8zpQJ7ImgjVFJLd5hP2dU)
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.7.3&code=H4sIAAAAAAAAA3WQTY7CMAyF9z2FxYZkkwOAGI00LFhzg9C%2BVBWdOLJTiQpxd%2FpDZ4ZBeGFZL5%2FtF4culrnhSIK60Qw5MJ%2FNGb2la0FDCHInkYxzzkutlnYfVHJUbuFars0kFreiwCWxZKoQfNdmCsvgCtrU0Zy8YkO5T%2BBAX%2FydOCLmf1vK1qvSfuogXDJipTR2PrAxSk69sX%2BEWfx1tBqJld3%2BAIO5pfx8%2Bub6hMCC47AGsrbvKB%2BG8gWSSXhxol2CuOVx%2B97lfJfHmGe7c77dAYePf1ucAQAA&config=H4sIAAAAAAAAA1VPOw6DMAzdOUXkuUPbgaF36CGiYFAqSCLbSEWIu5NAkpbNfh8%2Fv7VRCj5s4KXWOMYlaGKkukeEFyf6GxGQJSAbskHgVtgOjSctnjgqhGasjHAy9XpkPKDtZEA0DSjpHvLz%2FmjzLRi9ZyyOjE3W2X75%2F8b4KRAyX4VJqt0w4jWxyakw%2BW4%2ByNwyNTk%2FaOEnKmH1MFh%2BF2fq1mw7L9dvyDEBAAA%3D
SWC Info output
No response
Expected behavior
the compiled code should be as below
Actual behavior
No response
Version
1.7.3
Additional context
No response
The text was updated successfully, but these errors were encountered: