Very useless post.
I’ve ported duktape javascript engine to javascript (using emscripten). No js interface for it, so you gotta call methods like this:
var result = Module.ccall('functionName' /*name of C function*/,
'number|string' /*return type*/,
['number|string',...]/*arg types*/, [666] /*args*/);
The API documentation is available at duktype site.
source: dux.js
This can be used when eval is forbidden, or when we want to analyse js execution more closely.