Update Bot

This commit is contained in:
2026-03-15 11:58:43 +01:00
parent b67c111ffc
commit cd99275933
560 changed files with 23173 additions and 55113 deletions

View File

@@ -82,7 +82,11 @@ function getErrorCause(throwStatement) {
}
const causeProperties = errorOptions.properties.filter(
prop => astUtils.getStaticPropertyName(prop) === "cause",
prop =>
prop.type === "Property" &&
prop.key.type === "Identifier" &&
prop.key.name === "cause" &&
!prop.computed, // It is hard to accurately identify the value of computed props
);
const causeProperty = causeProperties.at(-1);