Support TypeError and RangeError in private scripts

This is a split from the CL to move ScriptRegexp to Blink-in-JS (See https://codereview.chromium.org/428633008/).

This CL improves PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded so that it can handle TypeError and RangeError.

BUG=341031
TEST=fast/dom/private_script_unittest.html

Review URL: https://codereview.chromium.org/431893005

git-svn-id: svn://svn.chromium.org/blink/trunk@179346 bbb929c8-8fbe-4397-9dbb-9b2b20218538