Hacker News new | ask | show | jobs
by andreyf 6238 days ago
That doesn't look like JS syntax... am I missing something, or are they using JS to parse/interpret it?
1 comments

It's JavaScript object literal syntax.
No - the application/javascript-socks scripts are putting Ruby-style code blocks in places JavaScript doesn't generally allow them. Presumably that's the reason for the alternate MIME type on the script.