@@ -63,12 +63,12 @@ export function warn(msg: string, ...args: any[]): void {
63
63
)
64
64
} else {
65
65
const warnArgs = [ `[Vue warn]: ${ msg } ` , ...args ]
66
- /* istanbul ignore if */
67
66
if (
68
67
trace . length &&
69
68
// avoid spamming console during tests
70
69
! __TEST__
71
70
) {
71
+ /* v8 ignore next 2 */
72
72
warnArgs . push ( `\n` , ...formatTrace ( trace ) )
73
73
}
74
74
console . warn ( ...warnArgs )
@@ -107,7 +107,7 @@ export function getComponentTrace(): ComponentTraceStack {
107
107
return normalizedStack
108
108
}
109
109
110
- /* istanbul ignore next */
110
+ /* v8 ignore start */
111
111
function formatTrace ( trace : ComponentTraceStack ) : any [ ] {
112
112
const logs : any [ ] = [ ]
113
113
trace . forEach ( ( entry , i ) => {
@@ -131,7 +131,6 @@ function formatTraceEntry({ vnode, recurseCount }: TraceEntry): any[] {
131
131
: [ open + close ]
132
132
}
133
133
134
- /* istanbul ignore next */
135
134
function formatProps ( props : Data ) : any [ ] {
136
135
const res : any [ ] = [ ]
137
136
const keys = Object . keys ( props )
@@ -146,7 +145,6 @@ function formatProps(props: Data): any[] {
146
145
147
146
function formatProp ( key : string , value : unknown ) : any [ ]
148
147
function formatProp ( key : string , value : unknown , raw : true ) : any
149
- /* istanbul ignore next */
150
148
function formatProp ( key : string , value : unknown , raw ?: boolean ) : any {
151
149
if ( isString ( value ) ) {
152
150
value = JSON . stringify ( value )
@@ -181,3 +179,4 @@ export function assertNumber(val: unknown, type: string): void {
181
179
warn ( `${ type } is NaN - ` + 'the duration expression might be incorrect.' )
182
180
}
183
181
}
182
+ /* v8 ignore stop */
0 commit comments