promise should use arieh-events when in common js mode