From: Evan You Date: Tue, 12 Dec 2023 16:48:32 +0000 (+0800) Subject: chore: preserve error code enum order X-Git-Tag: v3.4.0-beta.1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b6effb4236efba1b80289c40ed9f061de456737;p=thirdparty%2Fvuejs%2Fcore.git chore: preserve error code enum order --- diff --git a/packages/compiler-core/src/errors.ts b/packages/compiler-core/src/errors.ts index c7ee301231..cef13d4e43 100644 --- a/packages/compiler-core/src/errors.ts +++ b/packages/compiler-core/src/errors.ts @@ -90,13 +90,13 @@ export enum ErrorCodes { X_V_MODEL_ON_PROPS, X_INVALID_EXPRESSION, X_KEEP_ALIVE_INVALID_CHILDREN, - X_VNODE_HOOKS, // generic errors X_PREFIX_ID_NOT_SUPPORTED, X_MODULE_MODE_NOT_SUPPORTED, X_CACHE_HANDLER_NOT_SUPPORTED, X_SCOPE_ID_NOT_SUPPORTED, + X_VNODE_HOOKS, // Special value for higher-order compilers to pick up the last code // to avoid collision of error codes. This should always be kept as the last