webnn: Throw TypeError if MLBuffer type is not supported by backend
Previously threw NotSupportedError. This now matches the errors thrown
by MLGraphBuilder operand builders methods and moves the checks to the
renderer
Bug: 333392274
Change-Id: Ic2b73ae6c95d9326fe034725076f8dc7f6e1d0b6
Cq-Include-Trybots: luci.chromium.try:mac14-blink-rel,mac14.arm64-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5753043
Reviewed-by: Phillis Tang phillis@chromium.org
Commit-Queue: Austin Sullivan asully@chromium.org
Cr-Commit-Position: refs/heads/main@{#1336357}