Skip to content

Commit 76fbceb

Browse files
committed
chore: change console.warn for warn
1 parent 9cc0a2b commit 76fbceb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/runtime-vapor/src/for.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ export const createFor = (
5959

6060
const instance = getCurrentInstance()
6161
if (!instance) {
62-
// FIXME should use error handling
63-
console.warn('createFor() should be called in Vue Component')
62+
warn('createFor() should be called in Vue Component')
6463
}
6564

6665
const directivesList: DirectiveBindingsMap[] = []

packages/runtime-vapor/src/if.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
withDirectives,
1111
} from './directives'
1212
import { getCurrentInstance } from './component'
13+
import { warn } from './warning'
1314

1415
type BlockFn = () => Block
1516

@@ -34,8 +35,7 @@ export const createIf = (
3435

3536
const instance = getCurrentInstance()
3637
if (!instance) {
37-
// FIXME should use error handling
38-
console.warn('createIf() can only be used inside setup()')
38+
warn('createIf() can only be used inside setup()')
3939
}
4040

4141
// TODO: SSR

0 commit comments

Comments
 (0)