On Thu, Jul 8, 2010 at 10:50 PM, Wallace.Jvm <[email protected]> wrote: > I am new to the list! > > Sorry for my dumb question ... but I have compiled the hello_world.cpp > and tried to run a simple script using document.write and received the > following message: > > <unknown>: 0: Uncaught ReferenceError: document is not defined > Segmentation fault > > The V8 does not have the ECMAScript fully implemented? How can I use > javascript scripts (that sentence was a bit ugly = P) in V8!? >
"document" is part of the browser object model. V8 doesn't have any sort of knowledge about the DOM of the browser, it is made for you to embed into your own applications and create your own object model. slide -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
