Just to make it clear, I'm not interested in DOM scripting or writing Javascript in a browser. What I want to do is embed Javascript in a hobby game engine of mine. Now that we have the 5th generation of Javascript engines out (all blazing fast) I'm curious what engine would you choose to embed in a C++ framework (that includes actual ease of embeding it)?
update: here's a compilation of links so far and some tips from the thread
spidermonkey:
http://www.mozilla.org/js/spidermonkey/
tracemonkey (note:backwards compatible with spidermonkey):
http://wiki.mozilla.org/JavaScript:TraceMonkey
v8:
Squirrelfish:
http://trac.webkit.org/wiki/SquirrelFish
update: Just for the record, I love Lua and have already embedded it in game engines about 5 times at work.
However now this is a hobby project, and I think that Javascript being known by most web developers and because its ECMA, flash and flex developers, a game engine that uses Javascript and XML for scripting would be more user-friendly and cater to a larger user base (and one that so far has not had a chance to use their skills for games) than one with Lua (and there are plenty of those around!).
Also for the record I'll go with V8 on this one, mostly because I like it's C++ style.