fix(provide): support symbols in applyOptions (#2616)

fix #2615
This commit is contained in:
hiroki
2020-11-30 16:36:02 -05:00
committed by GitHub
parent e4f09c1419
commit 7a1a782642
3 changed files with 18 additions and 6 deletions

View File

@@ -667,9 +667,9 @@ export function applyOptions(
const provides = isFunction(provideOptions)
? provideOptions.call(publicThis)
: provideOptions
for (const key in provides) {
Reflect.ownKeys(provides).forEach(key => {
provide(key, provides[key])
}
})
})
}