Skip to content

Commit 20deeee

Browse files
committed
ensure id is string when resolving asset (fix #2254)
1 parent eaad245 commit 20deeee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/options.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ export function mergeOptions (parent, child, vm) {
359359
*/
360360

361361
export function resolveAsset (options, type, id) {
362+
/* istanbul ignore if */
363+
if (typeof id !== 'string') {
364+
return
365+
}
362366
var assets = options[type]
363367
var camelizedId
364368
return assets[id] ||

0 commit comments

Comments
 (0)