glimmer-vm icon indicating copy to clipboard operation
glimmer-vm copied to clipboard

`b.path` (`buildPath`/`buildHead`) does not work with `@namedArg`

Open chancancode opened this issue 5 years ago • 1 comments

b.path('@namedArg') should return something like:

{
  type: "PathExpression",
  original: "@namedArg",
  this: false,
  parts: ["namedArg"],
  data: true
}

but instead returns something like:

{
  type: "PathExpression",
  original: "@namedArg",
  this: false,
  parts: ["@namedArg"],
  data: false
}

At runtime, this causes it to do an implicit this lookup (this["@namedArg"]) instead.

chancancode avatar May 20 '20 21:05 chancancode

Ya, I ran into this somewhere as well but never tracked it down. We should fix...

rwjblue avatar May 21 '20 01:05 rwjblue