Is there a way to do continuations in V8? If not, is there another JavaScript engine for C++ that can do so?
I want to write an application that makes use of a JavaScript interpreter that supports continuations, much like Rhino does in Java.
This is primarily for game development, where it's incredibly useful (or even essential?) that a script be able to "pause" until the game engine gives it control again-- for example, waiting for a player's input before a cutscene resumes its chain of events.
V8 sounds like the most promising JavaScript engine for C++ applications right now, but from the resources I was able to find, V8 had no plans to support continuations. These posts were from 4-6 years ago, though, so they may or may not be up to date.