Open zaoqi opened 5 years ago
But it can translate
function f(x) {
return x[0];
}
and
function f(x) {
return x[1+0];
}
function f(x) {
return x[1+1];
}
and so on
function f(x) { return x[+1]; }
The + operator triggers numeric conversion in this case. Does js2php support JS types coercion?
Very interesting issue anyway.
http://endel.me/js2php/
It cannot translate it.