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
feat(ecma/parser): add the allow_return_outside_function
option
#5046
feat(ecma/parser): add the allow_return_outside_function
option
#5046
Conversation
crates/swc_html_minifier/src/lib.rs
Outdated
@@ -1069,6 +1073,13 @@ impl Minifier { | |||
} | |||
}; | |||
|
|||
println!("{:?}", errors); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeems like a mistake
@kdy1 Fixed and rebase |
fe97b07
to
5158b35
Compare
crates/swc_ecma_parser/src/lib.rs
Outdated
@@ -256,6 +256,16 @@ impl Syntax { | |||
} | |||
} | |||
|
|||
pub fn allow_return_outside_function(self) -> bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reduce visibility of this to pub(crate)
@kdy1 Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
swc-bump:
- swc_ecma_parser --breaking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated review comment generated by auto-rebase script
Description:
Add
allow_return_outside_function
to parse HTML event handler attributesBREAKING CHANGE:
Yes
Related issue (if exists):
No