Hi,
I've been studying and trying to embed the V8 engine into a sample C++
application here. I'm passing in a JavaScript to the library to
compile and run. I've added few callbacks to handle some functions
like 'write', 'alert', etc.
However, if there is a line like "document.write("Hello, world!")",
the script fails to run saying "ReferenceError: Document is not
defined".
Do we have to provide a template for 'Document' as well? Please let me
know if I'm missing something. I've been going through the
documentation, but, could not find anything related to this.
Thank you,
Ravi
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---