Functions marked as :Void shouldn't return
A number of functions are annotated as `: Void` but return the result of call, in recent versions of the HTMLMediaElement specification `play()` returns a promise. To avoid errors when the externs are updated I've removed the `return`
This commit is contained in:
committed by
Joshua Granick
parent
accfc369eb
commit
563246630e
@@ -378,7 +378,7 @@ class HTML5AudioContext {
|
||||
#if (js && html5)
|
||||
if (buffer.__srcAudio != null) {
|
||||
|
||||
return buffer.__srcAudio.load ();
|
||||
buffer.__srcAudio.load ();
|
||||
|
||||
}
|
||||
#end
|
||||
@@ -391,7 +391,7 @@ class HTML5AudioContext {
|
||||
#if (js && html5)
|
||||
if (buffer.__srcAudio != null) {
|
||||
|
||||
return buffer.__srcAudio.pause ();
|
||||
buffer.__srcAudio.pause ();
|
||||
|
||||
}
|
||||
#end
|
||||
@@ -404,7 +404,7 @@ class HTML5AudioContext {
|
||||
#if (js && html5)
|
||||
if (buffer.__srcAudio != null) {
|
||||
|
||||
return buffer.__srcAudio.play ();
|
||||
buffer.__srcAudio.play ();
|
||||
|
||||
}
|
||||
#end
|
||||
@@ -532,4 +532,4 @@ class HTML5AudioContext {
|
||||
}
|
||||
|
||||
|
||||
#end
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user