I got an answer on IRC: v8/src/builtins.cc
At the line BUILTIN(ObjectCreate) line, which is line 1586 in the source I have. --zac On Friday, February 12, 2016 at 2:46:23 PM UTC-8, Zac Hansen wrote: > > I'm curious how you'd re-implement the javascript call Object.create() > using the API, where you can specify a javascript object to be used as > prototype for the newly created object. Would you just say Object::New() > then call SetPrototype on it? I'm not clear on whether SetPrototype is a > bad call to make or not. > > Or is there already code for this in V8 somewhere that I could look at? > I don't know how the base javascript functionality is provided -- is it > just API code? > > Thank you. > > --Zac > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
