Skip to content
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

Merged
merged 3 commits into from
Sep 12, 2019
Merged

fix: remove dead code #1503

merged 3 commits into from
Sep 12, 2019

Conversation

ravijayaramappa
Copy link
Contributor

@ravijayaramappa ravijayaramappa commented Sep 10, 2019

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:

  • Have tests for the proposed changes been added? ❌
  • Have you followed these instructions to clearly describe the issue being fixed or feature enhanced? ✅

@@ -44,7 +44,6 @@ export function logError(message: string, elm?: Element) {
if (elm) {
msg = `${msg}\n${getFormattedComponentStack(elm)}`;
}

if (process.env.NODE_ENV === 'test') {
Copy link
Contributor Author

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?

Copy link
Contributor

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: {
Copy link
Contributor

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.

Copy link
Contributor

@caridy caridy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nip

@ravijayaramappa ravijayaramappa merged commit 044077f into master Sep 12, 2019
@ravijayaramappa ravijayaramappa deleted the ravi/master/test-env-cleanup branch September 12, 2019 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants