Skip to content

Revert "fix: workaround for es2015 inheritance not always working (#1… - #13868

Merged
jelbourn merged 1 commit into
angular:masterfrom
jelbourn:revert-func
Oct 30, 2018
Merged

Revert "fix: workaround for es2015 inheritance not always working (#1…#13868
jelbourn merged 1 commit into
angular:masterfrom
jelbourn:revert-func

Conversation

@jelbourn

Copy link
Copy Markdown
Contributor

…3834)"

This reverts commit a22a9fa.

This change caused a new issue where Closure Compiler was not able to do
dead-code elimination due to the function call with unknown side
effects.

…gular#13834)"
This reverts commit a22a9fa.
This change caused a new issue where Closure Compiler was not able to do
dead-code elimination due to the function call with unknown side
effects.
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 30, 2018
@jelbournjelbourn added the target: patch This PR is targeted for the next patch release label Oct 30, 2018
@devversion

devversion commented Oct 30, 2018

Copy link
Copy Markdown
Member

@jelbourn Hmm going forward with this, I'm not sure if it's even worth keeping the workaround at all.

The way it will be after the revert (without my new changes), it's practically not helping and just causes even more exceptions than before (in case the ctorParameters is not a function; which is often the case).

We definitely need to solve the Closure issue, and I can't think of a way to mark the function for inheriting as side effect free (google/closure-compiler#2256). That being said, we should probably remove the workaround completely and wait for Ivy. It's not an issue from Material, rather from Angular.

@devversion

devversion commented Oct 30, 2018

Copy link
Copy Markdown
Member

Also considering that angular/angular#24014 is finally merge ready as well, it might be just the best to get rid of the workaround completely. I can update this PR if you don't find time for it.

@josephperrott
josephperrott removed their request for review October 30, 2018 17:42
@jelbourn

Copy link
Copy Markdown
ContributorAuthor

We need to revert it first to unblock syncing into Google and then we can explore other approaches

@andrewseguinandrewseguin added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Oct 30, 2018

@devversiondevversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sounds good. Should we chat on Slack about the final solution? I'd vote for removing.

@jelbourn
jelbourn merged commit f2c7205 into angular:masterOct 30, 2018
@jelbourn

Copy link
Copy Markdown
ContributorAuthor

@devversion yeah, let's discuss it in more detail

atscott pushed a commit to atscott/components that referenced this pull request Nov 5, 2018
…gular#13834)" (angular#13868)
This reverts commit a22a9fa.
This change caused a new issue where Closure Compiler was not able to do
dead-code elimination due to the function call with unknown side
effects.
jelbourn added a commit that referenced this pull request Nov 6, 2018
…3834)" (#13868)
This reverts commit a22a9fa.
This change caused a new issue where Closure Compiler was not able to do
dead-code elimination due to the function call with unknown side
effects.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 10, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: mergeThe PR is ready for merge by the caretakercla: yesPR author has agreed to Google's Contributor License Agreementtarget: patchThis PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jelbourn@devversion@andrewseguin@googlebot