title: Native class construction in JavaScript
body: <p>I am defining a class in native and constructing that native class object from JS and I am trying to call native class api's using object of that class which i have created in js file. As you can see in the below code.
  <strong>i am using v8 for parsing.</strong>
      var p = new myclass();
          p.myfunc();
  <strong>this myfunc() is native api, which i am trying to call from js using class object.</strong>
  I'm getting the following message: </p>
  
  <blockquote>
    <p>TypeError: Illegal constructor</p>
  </blockquote>