File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tests-shared/src/main/scala/org/scalajs/dom/tests/shared Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import org.scalajs.dom.tests.shared.AsyncTesting.async
1212import scala .concurrent .Future
1313import scala .scalajs .js
1414import scala .scalajs .js .Thenable .Implicits ._
15+ import scala .scalajs .js .|
1516
1617trait BrowserTests {
1718
@@ -26,11 +27,11 @@ trait BrowserTests {
2627
2728 val stream = ReadableStream [Tuna ](
2829 new ReadableStreamUnderlyingSource [Tuna ] {
29- start = { (controller : ReadableStreamController [Tuna ]) =>
30+ start = js.defined( { (controller : ReadableStreamController [Tuna ]) =>
3031 controller.enqueue(Tuna (" blue" ))
3132 controller.enqueue(Tuna (" red" ))
3233 controller.close()
33- }: js.Function1 [ReadableStreamController [Tuna ], Unit ]
34+ }) : js.UndefOr [js. Function1 [ReadableStreamController [Tuna ], Unit | js. Promise [ Unit ]] ]
3435 }
3536 )
3637
You can’t perform that action at this time.
0 commit comments