Should I be able to? I have a C++ object that's accessed from script. I create an object template with some added functions, and then call NewInstance() to create the JS object and SetInternalField to connect it to the C++ object, as per the example.
This works fine. However, if I create a second object from the same template, and call the same script, v8 crashes. The stack trace shows it from within CallIC_Miss down to CodeCache::LookupDefaultCache where it calls default_cache() and uses the null pointer it returns. If I create a new object template for each C++ object, I don't have the problem. Presumably the object template mechanism is intended to be used more than once (and presumably this links in with all the clever hidden classes stuff). Any suggestions what I might be doing wrong? -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
