Hi there, I need to wrap a C++ object within a Javascript object. The constructor of the Javascript object is called using C++ which passes the native object as a parameter.
Now my question is: How can I prevent the script developer from calling the constructor but still allow access to all other properties and functions? Is there a way to hide the constructor? If it is not possible, I have to check for every operation i do, whether the native object is valid (not NULL), which will make it unnecessarily slower (these functions will be called quite often). Thanks, Christoph --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
