Hacker News new | ask | show | jobs
by sp332 4543 days ago
It really doesn't like having anything after "return" except a single value or variable.
1 comments

That's not it. For example, it accepts "return x|x&x;" . The restriction is that only a handful of Javascript operations are allowed. Anything else gives a hard-to-understand error message.