Generate a bit less code to handle failed arity checks.

If a failed argument count check is in the context of an 'extended'
ExceptionState object, then throw the required TypeError using it
instead. This saves having to duplicate the information it already
contains, generating a bit less code overall.

R=mkwst@chromium.org
BUG=270033

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163527 bbb929c8-8fbe-4397-9dbb-9b2b20218538
15 files changed
tree: c01b44fc1427f49a4a624b2037d764bbe66b40b3
  1. third_party/