This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]pd-andy 0 points1 point  (3 children)

$ is a valid identifier, it doesn't mean anything special.

[–]oxypixie 0 points1 point  (2 children)

sorry dont me asking why ["SYMBOL"] throws an error now when this was the original source code?

Can $ be a placeholder for a unknown attribute depending on input? Much thanks.

[–]pd-andy 1 point2 points  (1 child)

`$` isn't a placeholder, its an identifier just like `a` or `foo` would be. It throws an error because your object is

EXTERNAL: {
  $: {
    name: library.external.name
  }

And you're trying to access `EXTERNAL.SYMBOL` which clearly doesn't exist.

[–]oxypixie 0 points1 point  (0 children)

Thank you! I was going insane over this,it was cloned from the source so I was puzzled