Skip to content

Commit 9e7bee8

Browse files
committed
Merge pull request #142 from vpavkin/master
Turn Promise trait into a class with executor constructor parameter.
2 parents 7554ec6 + e1a6eaf commit 9e7bee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ trait WindowTimers extends WindowTimersExtension {
471471
*
472472
* MDN
473473
*/
474-
trait Promise[+A] extends js.Object {
474+
class Promise[+A](executor: js.Function2[js.Function1[A, Any], js.Function1[Any, Any], Any]) extends js.Object {
475475

476476
/**
477477
* The catch() method returns a Promise and deals with rejected cases only.

0 commit comments

Comments
 (0)