repl: do not define wasi on global with no flag
#45595
+17
−1
Merged