ember-script
ember-script copied to clipboard
Current #HEAD bad compiles @foo
Hi there, current head compiles this:
@bar.contains(@foo)
to get$(this, 'bar').contains(this.foo);
. It should be get$(this, 'bar').contains(get$(this, 'foo'));
I guess it is because commit 2134700c2d, where is added this code.
Looks like it could be from this line: https://github.com/ghempton/ember-script/commit/2134700c2d#diff-097a81dfc786f3a3aa0d594b496ea92bR217. That is probably due to a bad merge from CoffeeScriptRedux. I don't have time to look at this until later, do you have a minute to see if that fixes it?
It actually appears to be this line: https://github.com/ghempton/ember-script/commit/6b0fa13e6b6aa057b6344295476a9e3b02811e75#diff-097a81dfc786f3a3aa0d594b496ea92bR647
If I remove that /contextVar it starts working properly again. I don't have enough pegjs expertise to try to write a test case or anything, but hopefully this helps.
Do you have time to create a PR that removes that line?