The footer says that if you want a real "Javascript to Javascript interpreter", to see js.js[0], which is a JS interpreter written JS; where the satirical js2js is a JS-to-JS compiler, something different. If you want a real JS to JS compiler, see Google's "Closure Compiler"[1].<p>[0]: <a href="https://github.com/jterrace/js.js/" rel="nofollow">https://github.com/jterrace/js.js/</a><p>[1]: <a href="https://developers.google.com/closure/compiler/" rel="nofollow">https://developers.google.com/closure/compiler/</a> / <a href="https://github.com/google/closure-compiler" rel="nofollow">https://github.com/google/closure-compiler</a>
Here's the real nut-meat<p><pre><code> Js2JsCompiler.prototype.compileCode = function(code) {
return code; // as we need to compile javascript to javascript, we do nothing here :)
};
</code></pre>
Very helpfully commented!