File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import {
30
30
makeMap
31
31
} from '@vue/shared'
32
32
import { isRef } from './ref'
33
+ import { warn } from './warning'
33
34
34
35
const isNonTrackableKeys = /*#__PURE__*/ makeMap ( `__proto__,__v_isRef,__isVue` )
35
36
@@ -218,7 +219,7 @@ export const readonlyHandlers: ProxyHandler<object> = {
218
219
get : readonlyGet ,
219
220
set ( target , key ) {
220
221
if ( __DEV__ ) {
221
- console . warn (
222
+ warn (
222
223
`Set operation on key "${ String ( key ) } " failed: target is readonly.` ,
223
224
target
224
225
)
@@ -227,7 +228,7 @@ export const readonlyHandlers: ProxyHandler<object> = {
227
228
} ,
228
229
deleteProperty ( target , key ) {
229
230
if ( __DEV__ ) {
230
- console . warn (
231
+ warn (
231
232
`Delete operation on key "${ String ( key ) } " failed: target is readonly.` ,
232
233
target
233
234
)
You can’t perform that action at this time.
0 commit comments