FirebaseExtended / bolt

Bolt Compiler (Firebase Security and Modeling)
Apache License 2.0
897 stars 107 forks source link

`this[prior(this)]` missing `.val()` #190

Open thebnich opened 7 years ago

thebnich commented 7 years ago

this[prior(this)] compiles to newData.child(data).val() instead of the expected newData.child(data.val()).val().

bpinney commented 7 years ago

There is a workaround which @mckoss mentioned in #173:

this[prior(this) + ''] compiles to : newData.child(data.val() + '').val()