The line numbers are in the symbol file (.pdb). Blazor WASM does not have code to load the symbol file and process on exceptions. In debug mode the debugger loads the symbol file and provides the translation of address to line number.
note: in .net core, you need is disable code optimization for the line numbers to be accurate.