Suppose we run a script with javascript code, and get the output as utf8: Local<Script> script = Script::Compile(source); Handle<Value> result = script->Run(); String::Utf8Value utf8(result);
Is there some way to do this such that if the script returns a promise, we let v8 wait (block) for the promise to resolve or reject and read the result value? Or alternatively: is there a way to wrap a JavaScript library that uses promises, such that the wrapper function returns a the resolved value which we can read in v8 as above? -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" 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.
