assert object type in ctx.onerror