I've been frustrated by v8::Object::New not accepting a prototype object as a parameter and it's been hinted strongly that using v8::Object::SetPrototype after object creation is a bad idea. Now I'm left wondering if it would be reasonable to implement (and if it would be accepted if it worked) to add that functionality to v8::Object::New
Specifically:
static Local<Object> New(Isolate *isolate, Local<Object> prototype = Local<Object>, Local<Object>() propertiesObject=Local<Object>());
Also, while asking related questions earlier in the week, I was pointed at ObjectCreate in builtins.cc
I looked at it a bit and tried to move the code into v8.h/api.cc but I was quickly stymied by not understanding the relationship between v8::Object and v8::i::Object. Is the code in builtins.cc the right path for this? Also, is this a reasonable project for someone not intimately familiar with the v8 codebase and willing to put in a week's worth of time into learning and making the change or is this somehow much harder than it appears?
Thank you.
--Zac