MCPcopy
hub / github.com/ygs-code/vue / assertObjectType

Function assertObjectType

vue.js:2114–2122  ·  view source on GitHub ↗
(name, value, vm)

Source from the content-addressed store, hash-verified

2112
2113 //判断是否是对象
2114 function assertObjectType(name, value, vm) {
2115 if (!isPlainObject(value)) {
2116 warn(
2117 "Invalid value for option \"" + name + "\": expected an Object, " +
2118 "but got " + (toRawType(value)) + ".",
2119 vm
2120 );
2121 }
2122 }
2123
2124 /**
2125 * Merge two option objects into a new one.

Callers 2

mergeAssetsFunction · 0.85
vue.jsFile · 0.85

Calls 2

isPlainObjectFunction · 0.85
toRawTypeFunction · 0.85

Tested by

no test coverage detected