webnn: replace DataError with TypeError
The spec had been updated to throw TypeError for failed input
validations: webmachinelearning/webnn#589.
This CL replaces the last remaining DataErrors in lstm implementation and triangular wpt.
Bug: 40206287
Change-Id: I73952ce5b407f2df1d9d3b22c0086638d092e811
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5632940
Commit-Queue: Austin Sullivan asully@chromium.org
Reviewed-by: Austin Sullivan asully@chromium.org
Auto-Submit: Jiewei Qian qjw@chromium.org
Cr-Commit-Position: refs/heads/main@{#1317381}