diff --git a/ecmascript/parser/src/error.rs b/ecmascript/parser/src/error.rs index 3da961af404..17ff295cd92 100644 --- a/ecmascript/parser/src/error.rs +++ b/ecmascript/parser/src/error.rs @@ -283,7 +283,7 @@ impl<'a> From> for DiagnosticBuilder<'a> { PropertyNamedConstructor => { "Classes may not have a non-static field named 'constructor'".into() } - ClassProperty => "Class property requires `jsc.classProperty` to be true".into(), + ClassProperty => "Class property requires `jsc.parser.classProperty` to be true".into(), ReadOnlyMethod => "A method cannot be readonly".into(), TsBindingPatCannotBeOptional => "A binding pattern parameter cannot be optional in an \ implementation signature." @@ -293,7 +293,7 @@ impl<'a> From> for DiagnosticBuilder<'a> { "Trailing comma is disallowed inside import(...) arguments".into() } DynamicImport => { - "import(...) expressions requires jsc.dynamicImports to be true".into() + "import(...) expressions requires `jsc.parser.dynamicImport` to be true".into() } };