refactor(runtime-core): make setup attrs proxy dev only
This commit is contained in:
@@ -120,8 +120,12 @@ export const toDisplayString = (val: unknown): string => {
|
||||
: String(val)
|
||||
}
|
||||
|
||||
export function invokeArrayFns(fns: Function[], arg?: any) {
|
||||
export const invokeArrayFns = (fns: Function[], arg?: any) => {
|
||||
for (let i = 0; i < fns.length; i++) {
|
||||
fns[i](arg)
|
||||
}
|
||||
}
|
||||
|
||||
export const def = (obj: object, key: string | symbol, value: any) => {
|
||||
Object.defineProperty(obj, key, { value })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user