Skip to content

Commit 9f4b769

Browse files
joyeecheungV8 LUCI CQ
authored andcommitted
Fix mistake in the skip branch of test/mjsunit/regress-1320641.js
It was doing a `string.test(regex)` which was wrong. It's supposed to be `regex.test(string)`. It wasn't caught in the CI because the skip path is not normally taken in the V8 CI. Change-Id: Id1bdab5bbc41968bba8adc1cb3664e8f95fb5d72 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4697855 Commit-Queue: Joyee Cheung <joyee@igalia.com> Reviewed-by: Nico Hartmann <nicohartmann@chromium.org> Cr-Commit-Position: refs/heads/main@{#89044}
1 parent f4472bc commit 9f4b769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/mjsunit/regress/regress-1320641.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var skip = false;
1313
try {
1414
new Uint16Array(3775336418);
1515
} catch (e) {
16-
if (e.message.test(/Array buffer allocation failed/)) {
16+
if (/Array buffer allocation failed/.test(e.message)) {
1717
skip = true; // We don't have enough memory, just skip the test.
1818
}
1919
}

0 commit comments

Comments
 (0)