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:
George Corney
2018-09-05 14:57:03 +01:00
committed by Joshua Granick
parent accfc369eb
commit 563246630e

View File

@@ -378,7 +378,7 @@ class HTML5AudioContext {
#if (js && html5) #if (js && html5)
if (buffer.__srcAudio != null) { if (buffer.__srcAudio != null) {
return buffer.__srcAudio.load (); buffer.__srcAudio.load ();
} }
#end #end
@@ -391,7 +391,7 @@ class HTML5AudioContext {
#if (js && html5) #if (js && html5)
if (buffer.__srcAudio != null) { if (buffer.__srcAudio != null) {
return buffer.__srcAudio.pause (); buffer.__srcAudio.pause ();
} }
#end #end
@@ -404,7 +404,7 @@ class HTML5AudioContext {
#if (js && html5) #if (js && html5)
if (buffer.__srcAudio != null) { if (buffer.__srcAudio != null) {
return buffer.__srcAudio.play (); buffer.__srcAudio.play ();
} }
#end #end
@@ -532,4 +532,4 @@ class HTML5AudioContext {
} }
#end #end