Skip to content

Commit e60edc0

Browse files
authored
chore(test): report correct value of __EXTEND_POINT__ when subsequent error codes is less than it (#13213)
1 parent 21b685a commit e60edc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compiler-dom/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (__TEST__) {
4242
if (DOMErrorCodes.X_V_HTML_NO_EXPRESSION < ErrorCodes.__EXTEND_POINT__) {
4343
throw new Error(
4444
`DOMErrorCodes need to be updated to ${
45-
ErrorCodes.__EXTEND_POINT__ + 1
45+
ErrorCodes.__EXTEND_POINT__
4646
} to match extension point from core ErrorCodes.`,
4747
)
4848
}

packages/compiler-ssr/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if (__TEST__) {
2929
if (SSRErrorCodes.X_SSR_UNSAFE_ATTR_NAME < DOMErrorCodes.__EXTEND_POINT__) {
3030
throw new Error(
3131
`SSRErrorCodes need to be updated to ${
32-
DOMErrorCodes.__EXTEND_POINT__ + 1
32+
DOMErrorCodes.__EXTEND_POINT__
3333
} to match extension point from core DOMErrorCodes.`,
3434
)
3535
}

0 commit comments

Comments
 (0)