Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 24, 2017
1 parent f4630d0 commit 3b7cfc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/instance/init.js
Expand Up @@ -18,8 +18,8 @@ export function initMixin (Vue: Class<Component>) {
// a uid
vm._uid = uid++

/* istanbul ignore if */
let startTag, endTag
/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && config.performance && mark) {
startTag = `vue-perf-init:${vm._uid}`
endTag = `vue-perf-end:${vm._uid}`
Expand Down
1 change: 1 addition & 0 deletions src/core/instance/inject.js
Expand Up @@ -31,6 +31,7 @@ export function initInjections (vm: Component) {
let source = vm
while (source) {
if (source._provided && provideKey in source._provided) {
/* istanbul ignore else */
if (process.env.NODE_ENV !== 'production') {
defineReactive(vm, key, source._provided[provideKey], () => {
warn(
Expand Down

0 comments on commit 3b7cfc7

Please sign in to comment.