pvginkel / Jint2

Jint improved
0 stars 0 forks source link

JQuery scripts don't parse #48

Closed pvginkel closed 10 years ago

pvginkel commented 10 years ago

The JQuery scripts don't parse. jquery-1.2.6 on line 699 has an argument name which isn't identified as an argument. The problem is that certain constructs (catch, variable declaration and in this case, for in) declare a variable. However, this is too early and the arguments haven't yet been put into the declared variables collection. Solution is probably to move inserting the arguments into the declared variables collection earlier.

Also check whether a for in actually implies a variable declaration. Currently, besides variable declaration, catch and for in imply a variable declaration. Check whether this is correct.