But the suggestion wasn't to design a simple expression language.
The suggestion was to parse _JavaScript_. (That's what `.toString()` on a function does... gives you back the JavaScript.)