Closed pthrasher closed 7 years ago
@pthrasher I tried those tests on master and they don't trigger the bug. I don't think you can write a test triggering the bug with an access to auth. root["val"]() == null
might trigger that bug, but there's other bug in front of it (Targaryen assume computed property on snapshot is not valid).
root["val"]() == null
would catch this bug; it's not related to the scope.
Once #115 is fix, we could write a regression test by checking the error message from
parser.parse('root[$foo]() == null', ['$foo'])
. It shouldn't complain about property access not about the scope.
I made some adjustment but It didn't let me push to your PR. I create a new PR instead: #119 fixes the tests, flatten the fix and rebased with master.
Thanks @pthrasher I will release the fix today.
@pthrasher released
Without this change, computed member expressions throw on parse.