mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
4dc2c65578
In many places, we check error codes on shaka.util.Error. But the compiler doesn't know that what is caught in "catch" is that type, so we add type assertions. In some cases, we know that other types may also be thrown, so there are also some runtime checks. Some of these had to be refactored to allow the compiler to correctly infer types. Change-Id: I053bd7e96213c689aae3889315052dd402124690