Closed ward closed 9 years ago
Both o.a and o['a'] do not seem to get converted to aran.traps.get(o, a). For example with the Logger from the demo:
o.a
o['a']
aran.traps.get(o, a)
becomes
aran.hooks.Program(1); { aran.hooks.Expression(); aran.hooks.Member('a'), (aran.hooks.Identifier('o'), o).a; }
Similarly
aran.hooks.Program(1); { aran.hooks.Expression(); aran.hooks.Member(null), (aran.hooks.Identifier('o'), o)[aran.hooks.Literal('a'), aran.traps.primitive('a')]; }
Thanks, fixed.
Both
o.a
ando['a']
do not seem to get converted toaran.traps.get(o, a)
. For example with the Logger from the demo:becomes
Similarly
becomes