Просмотр исходного кода

chore(test): report correct value of `__EXTEND_POINT__` when subsequent error codes is less than it (#13213)

山吹色御守 9 месяцев назад
Родитель
Сommit
e60edc06f2
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      packages/compiler-dom/src/errors.ts
  2. 1 1
      packages/compiler-ssr/src/errors.ts

+ 1 - 1
packages/compiler-dom/src/errors.ts

@@ -42,7 +42,7 @@ if (__TEST__) {
   if (DOMErrorCodes.X_V_HTML_NO_EXPRESSION < ErrorCodes.__EXTEND_POINT__) {
     throw new Error(
       `DOMErrorCodes need to be updated to ${
-        ErrorCodes.__EXTEND_POINT__ + 1
+        ErrorCodes.__EXTEND_POINT__
       } to match extension point from core ErrorCodes.`,
     )
   }

+ 1 - 1
packages/compiler-ssr/src/errors.ts

@@ -29,7 +29,7 @@ if (__TEST__) {
   if (SSRErrorCodes.X_SSR_UNSAFE_ATTR_NAME < DOMErrorCodes.__EXTEND_POINT__) {
     throw new Error(
       `SSRErrorCodes need to be updated to ${
-        DOMErrorCodes.__EXTEND_POINT__ + 1
+        DOMErrorCodes.__EXTEND_POINT__
       } to match extension point from core DOMErrorCodes.`,
     )
   }