-
Notifications
You must be signed in to change notification settings - Fork 190
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
Conversation
op(Op.GetVariable, 0); | ||
op(Op.GetProperty, name); | ||
}); | ||
EXPRESSIONS.add(SexpOpcodes.GetFreeAsFallback, (op, [, , path]) => { | ||
withPath(op, path); | ||
}); |
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.
Should this whole thing be ✂️?
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.
I can't tell if GetFreeAsFallback
also handles the case of an in scope "loose/free" variable. @rwjblue
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.
@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] | |||
[] |
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.
this is different behavior. Not sure if technically a regression though. Neither this.[]
nor this['']
work.
Note - this PR requires #1332 to be merged first. All the failures are in the partials test module. |
793978e
to
8291f84
Compare
this.
property fallback (e.g. the this-property-fallback
deprecation)
4865e12
to
89adeba
Compare
This PR removes missing
this
deprecations and supporting code.Ref Ember.js issue: emberjs/ember.js#19617
Ember.js PR: emberjs/ember.js#19736