Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Show HN: JavaScript-Lua Polyglot
(opens in new tab)
(gist.github.com)
1 points
chirsz
1y ago
2 comments
Share
I tried to search but not found how to write JavaScript-Lua polyglot, so I do it by myself.
If you know polyglot for other languages, please share them.
Show HN: JavaScript-Lua Polyglot | Better HN
2 comments
default
newest
oldest
ghjfrdghibt
1y ago
I don't get what this is...
chirsz
OP
1y ago
A script that can be run as JavaScript or Lua. When run as Lua, it outputs "lua". When run as JavaScript, it outputs "js".
j
/
k
navigate · click thread line to collapse