(no title)
disnet | 13 years ago
It actually does the right thing if the function is named:
a = function foo() {}
/5/
7
correctly translates to: a = function foo() {
} / 42 / 7;
But clearly I missed the unnamed case. You mentioned finding a few other bugs? Would you mind submitting a bug report on github? I would love to fix those too!
saurik|13 years ago
To start with some example code:
If I run that in node I get: As this code is vaguely equivalent to: However, it gets converted by sjs to: That's obviously different, and gives this error instead: (I really should get back to actually doing my job now, though; if dherman responds again I'll totally notice and follow up: that conversation is really interesting to me.)disnet|13 years ago
[1] https://github.com/mozilla/sweet.js/issues/18
saurik|13 years ago