Skip to content

Commit

Permalink
Add missing asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jun 8, 2023
1 parent 3dba5f1 commit e1930e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/hls/hls_classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ shaka.hls.Segment = class {
*/
get absoluteUri() {
if (!this.absoluteUri_) {
goog.asserts.assert(this.absoluteMediaPlaylistUri_,
'An absolute Media Playlist URI should be defined!');
goog.asserts.assert(this.verbatimSegmentUri_,
'An verbatim segment URI should be defined!');
this.absoluteUri_ = shaka.hls.Utils.constructAbsoluteUri(
this.absoluteMediaPlaylistUri_, this.verbatimSegmentUri_);
this.absoluteMediaPlaylistUri_ = null;
Expand Down

0 comments on commit e1930e4

Please sign in to comment.