Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upreturn x[1]; #41
return x[1]; #41
Comments
|
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) { 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.