The following command runs code with assertions disabled, which means that it is not running in debug mode:
dart test -p chrome -c dart2wasm --debug
Unsure if this affects dart2wasm directly or the flag just isn't being passed
Related issues:
flutter/flutter#148850