v8/test/message/fail/data-view-invalid-length-2.out
Marja Hölttä 7ca4e9cad5 [errors] Enhance the DataView construction error message
Make it include the invalid length again, but this time consistently.

Bug: chromium:923688
Change-Id: I0ec2543e02b58ff2b79547021a8e0d47a9debe46
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3440068
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78976}
2022-02-07 12:02:48 +00:00

7 lines
206 B
Plaintext

*%(basename)s:6: RangeError: Invalid DataView length -1
let t2 = new DataView(t.buffer, 7, -1);
^
RangeError: Invalid DataView length -1
at new DataView (<anonymous>)
at *%(basename)s:6:10