I am developing a translator that converts JavaScript source into a target language. I am trying to implement JavaScript's Math object in the target language.
If there is a JavaScript implementation of the "Math" object, I can use the translator to obtain the equivalent code in the target language.
I am looking for something like this:
var Math = {
pow: function(...) {...}
exp: function(...) {...}
/* other methods of Math */
}
Is there such an implementation that is available ? This would help me avoid manually writing the Math object's code in the target language.