-
Notifications
You must be signed in to change notification settings - Fork 392
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
fix(compiler): displaying correct ambigious attribute name #377
fix(compiler): displaying correct ambigious attribute name #377
Conversation
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.
All good except a typo in the word 'ambiguous'
@@ -53,9 +53,9 @@ function validatePropertyName(property) { | |||
`Invalid property name "${propertyName}". "${propertyName}" is a reserved attribute.` | |||
); | |||
} else if (AMBIGIOUS_PROP_SET.has(propertyName)) { | |||
const { propName = propertyName } = GLOBAL_ATTRIBUTE_MAP.get(propertyName) || {}; | |||
const camelCased = AMBIGIOUS_PROP_SET.get(propertyName); |
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.
typo - ambiguous
throw property.buildCodeFrameError( | ||
`Ambigious attribute name ${propertyName}. ${propertyName} will never be called from template because its corresponding property is camel cased. Consider renaming to "${propName}".` | ||
`Ambigious attribute name ${propertyName}. ${propertyName} will never be called from template because its corresponding property is camel cased. Consider renaming to "${camelCased}".` |
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.
same type here
} | ||
`, { | ||
error: { | ||
message: 'test.js: Ambigious attribute name maxlength. maxlength will never be called from template because its corresponding property is camel cased. Consider renaming to "maxLength".', |
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.
typo in ambiguous
Benchmark resultsBase commit: lwc-engine-benchmark
|
Benchmark resultsBase commit: lwc-engine-benchmark
|
Details
maxlength
->maxLength
in warningDoes this PR introduce a breaking change?