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

[cleanup]: Remove this. property fallback (e.g. the this-property-fallback deprecation) #1331

Merged
merged 3 commits into from Oct 5, 2021

Conversation

snewcomer
Copy link
Contributor

@snewcomer snewcomer commented Aug 29, 2021

This PR removes missing this deprecations and supporting code.

Ref Ember.js issue: emberjs/ember.js#19617

Ember.js PR: emberjs/ember.js#19736

op(Op.GetVariable, 0);
op(Op.GetProperty, name);
});
EXPRESSIONS.add(SexpOpcodes.GetFreeAsFallback, (op, [, , path]) => {
withPath(op, path);
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should this whole thing be ✂️?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't tell if GetFreeAsFallback also handles the case of an in scope "loose/free" variable. @rwjblue

Copy link
Member

Choose a reason for hiding this comment

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

@snewcomer - Let's land this as is now, and maybe you can send a follow up PR that removes the GetFreeAsFallback op code and see if all tests pass...

@@ -125,7 +125,7 @@ class UpdatingTest extends RenderTest {

this.assertHTML(stripTight`
<div>
[empty string]
[]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is different behavior. Not sure if technically a regression though. Neither this.[] nor this[''] work.

@snewcomer
Copy link
Contributor Author

Note - this PR requires #1332 to be merged first. All the failures are in the partials test module.

@rwjblue rwjblue changed the title [cleanup]: this. property fallback this-property-fallback [cleanup]: Remove this. property fallback (e.g. the this-property-fallback deprecation) Oct 4, 2021
@rwjblue rwjblue merged commit ed22236 into glimmerjs:master Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants