Matthew
unread,Jun 8, 2011, 9:46:35 AM6/8/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-users
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.