function derp() { a(); b(); c(); } derp.toString() will return "function derp() { a(); b(); c(); }", but I only need the body of the function, so "a(); b(); c();", because I can then evaluate the expression. Is it possible to do this in a cross-browser way?
a(); b(); c();is not a valid expression though...;separates statements and hence cannot be part of an expression. Everything that throws a syntax error when put into the grouping operator(...)is not a valid expressions. But maybe the OP did not refer to this technical meaning with the term expression.