Fix ImageData constructor infelicity.

Correctly handle the optional third argument for the overload

 ImageData(Uint8ClampedArray d, unsigned long w, optional unsigned long h)

It should not throw if not supplied, but should throw if supplied and zero.

Also, delegate the object interface typecheck to generated bindings code.

R=junov
BUG=338804

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

git-svn-id: svn://svn.chromium.org/blink/trunk@188847 bbb929c8-8fbe-4397-9dbb-9b2b20218538
6 files changed
tree: 7036d14e83eef3324cd9473b34bce81c186be80b
  1. third_party/