TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Js2js: A revolutionary open-source compiler from JavaScript to JavaScript

23 pointsby bryanmikaelianover 10 years ago

7 comments

LukeShuover 10 years ago
The footer says that if you want a real &quot;Javascript to Javascript interpreter&quot;, 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&#x27;s &quot;Closure Compiler&quot;[1].<p>[0]: <a href="https://github.com/jterrace/js.js/" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jterrace&#x2F;js.js&#x2F;</a><p>[1]: <a href="https://developers.google.com/closure/compiler/" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;closure&#x2F;compiler&#x2F;</a> &#x2F; <a href="https://github.com/google/closure-compiler" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;closure-compiler</a>
评论 #9005917 未加载
pkulakover 10 years ago
Here&#x27;s the real nut-meat<p><pre><code> Js2JsCompiler.prototype.compileCode = function(code) { return code; &#x2F;&#x2F; as we need to compile javascript to javascript, we do nothing here :) }; </code></pre> Very helpfully commented!
ithkuilover 10 years ago
It can also decompile JS back to JS, cool!
mgingrasover 10 years ago
Can you generate a map file for in-browser debugging?
adnanhover 10 years ago
What is up with all these troll projects recently?
评论 #9005983 未加载
评论 #9005956 未加载
ttcbjover 10 years ago
Funny!
skoreckyover 10 years ago
eval();