wip: invert compiler compat behavior default during tests

This commit is contained in:
Evan You
2021-04-16 12:26:17 -04:00
parent bbf708dbe9
commit ad97bbab85
2 changed files with 6 additions and 4 deletions

View File

@@ -13,9 +13,9 @@ export function defaultOnError(error: CompilerError) {
throw error
}
export function defaultOnWarn(msg: string | CompilerError) {
__DEV__ &&
console.warn(`[Vue warn]`, typeof msg === 'string' ? msg : msg.message)
export function defaultOnWarn(msg: CompilerError) {
throw new Error('foo')
__DEV__ && console.warn(`[Vue warn]`, msg.message)
}
export function createCompilerError<T extends number>(