b2f00cca
by Francis De Brabandere at 2026-03-19T18:31:08+01:00
vbscript: Return proper error for For Each on non-collection types.
Return MAKE_VBSERROR(VBSE_NOT_ENUM) (error 451, "Object not a collection")
instead of E_NOTIMPL/E_FAIL when For Each is used on a value that is not
a collection. This affects both interp_newenum (when the expression is not
a dispatch or array type) and interp_enumnext (when the enumerator was
never initialized due to a prior error).