Return proper exception on CreateImageBitmap WPT test

There is a test for createImageBitmap that checks whether the source
image can not be allocated (DstBufferSizeHasOverflow) and rejects
the promise returning a null object when it should reject with

Bug: 799025
Change-Id: I57b3afad681161e89c3cff746c3e433c31fe9895
Commit-Queue: David Quiroz Marin <>
Reviewed-by: Fernando Serboncini <>
Cr-Commit-Position: refs/heads/master@{#636575}
3 files changed