If the coder types an expression into the console that is not syntactically valid, we should recognize that and provide good, human-readable feedback rather than sending it to the preview frame be evaluated and throw a generic syntax error.
We can probably also do some very light linting here, probably a small subset of the rules we use for linting project JavaScript code.
Very closely related to #1264