title: How to get the class name when running a constructor function in duktape?
body: <p>I'd like to use a single duktape/C constructor function as dispatcher for these kind of calls. When the dispatcher function is called I need to know for which class this happend to call the appropriate C++ construction function.</p>
  
  <p>I guess the <code>this</code> binding won't help since it represents the (not yet fully initialized) JS object we are creating here.</p>
  
  <p>Another option would be the current function, but from the docs I can't see how to get the class name from that. What else could I use?</p>