diff --git a/packages/runtime-vapor/src/componentEmits.ts b/packages/runtime-vapor/src/componentEmits.ts index f26c6813505..60007037ef3 100644 --- a/packages/runtime-vapor/src/componentEmits.ts +++ b/packages/runtime-vapor/src/componentEmits.ts @@ -18,7 +18,7 @@ export function normalizeEmitsOptions( let normalized: ObjectEmitsOptions if (isArray(raw)) { normalized = {} - for (const key in raw) normalized[key] = null + for (const key of raw) normalized[key] = null } else { normalized = raw }