variable declarations only recognise first variable #1

michaelficarra opened this Issue Mar 1, 2013 · 0 comments

1 participant

var a = 'toString', b = {};
a in b;

fails with "Error: no variable called b". Maybe you should look into using something more mature like Constellation/escope.

@toolness toolness pushed a commit that closed this issue Mar 22, 2013
@joeldart joeldart fixes #1: conditionally separates variable declarations
using or caused lazy evaluation of truthy assignments. if not in a for loop, we can use ; to separate instead
@toolness toolness closed this in c73678c Mar 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment