I compiled \V8\samples\shell.cc into shell.exe, and know shell.exe can
execute string by the way below,
Usage:
shell [options] -e string
However, when I run JavaScript's alert() function, the following error
is threw,
--------------
shell.exe -e alert("123")
unnamed:1: ReferenceError: alert is not defined
alert(123)
^
ReferenceError: alert is not defined
at unnamed:1:1
--------------
I don't know why shell.exe can't recognize alert() function. After
all, V8 is a JavaScript engine, and the alert() function is a built-in
JavaScript function.
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users