Status: New
Owner: ----

New issue 1335 by [email protected]: Missing templates in V8 API
http://code.google.com/p/v8/issues/detail?id=1335

I have noticed some JS Objects (which need to call a builtin constructor) can't be added to the global object before the Context::Scope is created.
For example the following code causes a segmentation fault:

v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
global->Set(v8::String::New("regex"), RegExp::New(v8::String::New("foo"), v8::RegExp::kNone));

The problem is same with: Date, Array, ...
I think implementing Template classes for these objects can solves this problem.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to