mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Meta: Increase the line length enforced by prettier to 120
This matches our coding style recommendation in CodingStyle.md, and matches our python formatting.
This commit is contained in:
Notes:
github-actions[bot]
2025-10-31 23:56:51 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/019c529c071 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6654
@@ -2,28 +2,19 @@ test("Issue #9336, integer overflow in get_view_value", () => {
|
||||
const dataView = new DataView(new ArrayBuffer(16));
|
||||
expect(() => {
|
||||
dataView.getUint32(0xfffffffc);
|
||||
}).toThrowWithMessage(
|
||||
RangeError,
|
||||
"Data view byte offset 4294967292 is out of range for buffer with length 16"
|
||||
);
|
||||
}).toThrowWithMessage(RangeError, "Data view byte offset 4294967292 is out of range for buffer with length 16");
|
||||
});
|
||||
|
||||
test("Issue #9338, integer overflow in set_view_value", () => {
|
||||
const dataView = new DataView(new ArrayBuffer(16));
|
||||
expect(() => {
|
||||
dataView.setUint32(0xfffffffc, 0);
|
||||
}).toThrowWithMessage(
|
||||
RangeError,
|
||||
"Data view byte offset 4294967292 is out of range for buffer with length 16"
|
||||
);
|
||||
}).toThrowWithMessage(RangeError, "Data view byte offset 4294967292 is out of range for buffer with length 16");
|
||||
});
|
||||
|
||||
test("Issue #9338, integer overflow in set_view_value - zero-length DataView", () => {
|
||||
const dataView = new DataView(new ArrayBuffer(4), 4);
|
||||
expect(() => {
|
||||
dataView.setUint32(0xfffffffc, 0);
|
||||
}).toThrowWithMessage(
|
||||
RangeError,
|
||||
"Data view byte offset 4294967292 is out of range for buffer with length 0"
|
||||
);
|
||||
}).toThrowWithMessage(RangeError, "Data view byte offset 4294967292 is out of range for buffer with length 0");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user