How can I include another js file file in today's v8?
问题 I find an old anwser and later updates here, but it is hard for me to adapt this code to the latest(2020) V8 version. There are many difficulties that I encounter: String::New is removed and now a String::NewFromUtf8Literal needs an Isolate* isolate which I don't know how to pass to function Include , should I just add this before const Arguments& args ? Script::Compile takes a Context object as paramater now And I don't know where to put the last two line codes Handle<ObjectTemplate> global