We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
swc-project
Learn more about funding links in repositories.
Report abuse
SyntaxError::UsingDeclNotEnabled
1 parent 35264c5 commit 95c822eCopy full SHA for 95c822e
crates/swc_ecma_parser/src/error.rs
@@ -540,9 +540,9 @@ impl SyntaxError {
540
SyntaxError::UsingDeclNotAllowedForForInLoop => {
541
"Using declaration is not allowed in for-in loop".into()
542
}
543
- SyntaxError::UsingDeclNotEnabled => {
544
- "Using declaration is not enabled. Set jsc.parser.usingDecl to true".into()
545
- }
+ SyntaxError::UsingDeclNotEnabled => "Using declaration is not enabled. Set \
+ jsc.parser.explicitResourceManagement to true"
+ .into(),
546
SyntaxError::InvalidNameInUsingDecl => {
547
"Using declaration only allows identifiers".into()
548
0 commit comments