-
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: remove dead code #1503
fix: remove dead code #1503
Conversation
@@ -44,7 +44,6 @@ export function logError(message: string, elm?: Element) { | |||
if (elm) { | |||
msg = `${msg}\n${getFormattedComponentStack(elm)}`; | |||
} | |||
|
|||
if (process.env.NODE_ENV === 'test') { |
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.
How about this one Caridy?
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.
no, this one is fine.
@@ -175,20 +174,6 @@ defineProperties(HTMLSlotElement.prototype, { | |||
}, | |||
children: { |
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.
you can remove the entire descriptor since it does nothing now.
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.
small nip
Details
Remove dead code in @lwc/synthetic-shadow.
LWC Jest tests run in native shadow mode. There are a couple of branching logic for sythetic-shadow that are no longer necessary.
Does this PR introduce breaking changes?
No, it does not introduce breaking changes.
If yes, please describe the impact and migration path for existing applications.
The PR fulfills these requirements: