Skip to content

Commit e941946

Browse files
authored
fix: not correct error and warning codes (#855)
closes #854
1 parent dde502d commit e941946

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/core-base/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface CoreError extends CompileError {
99
}
1010

1111
let code = CompileErrorCodes.__EXTEND_POINT__
12-
const inc = () => code++
12+
const inc = () => ++code
1313

1414
export const CoreErrorCodes = {
1515
INVALID_ARGUMENT: code, // 15

packages/vue-i18n-core/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface I18nError extends CompileError {
99
}
1010

1111
let code = CompileErrorCodes.__EXTEND_POINT__
12-
const inc = () => code++
12+
const inc = () => ++code
1313

1414
export const I18nErrorCodes = {
1515
// composer module errors

packages/vue-i18n-core/src/warnings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { format } from '@intlify/shared'
22
import { CoreWarnCodes } from '@intlify/core-base'
33

44
let code = CoreWarnCodes.__EXTEND_POINT__
5-
const inc = () => code++
5+
const inc = () => ++code
66

77
export const I18nWarnCodes = {
88
FALLBACK_TO_ROOT: code, // 7

0 commit comments

Comments
 (0)