[v18.x] esm: fix broken assertion in legacyMainResolve
#55708
+1
−1
Closed