I have a requirement where i have created a set of functions in a jsx file, these functions are added to the prototype of a function(to be used as a constructor for new objects) to simulate a class.
Now what i am trying to do is run this file using doScript method so that it calls up a method in the file which creates an object from the constructor method and return that object. I do get the object but it has no properties set i.e. i cannot access anything added to the prototype of the constructor method.
The object i get in the file calling the doScript is of type Object with no properties set. Kindly point me to the right direction to achieve what i need. Let me know if further details are needed.