> i want to use V8 for providing scriptable AI extensions for my > simulation game. > I have questions as to what libraries will be available for the > Javascript client code? > From the embedder point of view, do i need to open any libraries so > that the client script can use file i/o, system, networking etc.? > And more importantly, is there a way to *prevent* the user from > accessing file or system related functions from within the Javascript? > That is i want to provide a sandboxed environment, where i as a > embedder decide which libraries will be available to the scripts. > How do i go for that?
By itself v8 provides basic stuff like String, RegExp and Date. I don't think it exposes any I/O or other security sensitive facilities. The C++ application needs to expose access to I/O and other stuff as it sees fit. Others may have provided C++ libs to provide these services if you do not want to develop them yourself. For sandboxing I would expect you want to provide your own or use a lib designed with sandboxing in mind. -- Bryan White -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
