The same things that happens in JS or python.
If you get a key wrong it throws (panics in go)
If you get a key wrong it throws (panics in go)
"Oh, but that's just how it is in strongly-typed languages" - that may well be true, but we're comparing "JS or python" with GoLang here.