Skip to content

Conversation

@sjrd
Copy link
Member

@sjrd sjrd commented Feb 12, 2021

No description provided.

@sjrd sjrd requested a review from gzm0 February 12, 2021 16:03
Copy link
Contributor

@gzm0 gzm0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one nit.

If a custom JS function type extends the special trait `js.ThisFunction`, its first argument on the Scala.js side maps to the `this` value in JavaScript.

Note that the built-in `js.FunctionN` and `js.ThisFunctionN` types fit those definitions, and are therefore "custom" JS function types themselves, that happen to be defined in the Scala.js standard library.
There are no more built-in function types.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand what this sentence means. Are you trying to say that there are not custom function types in the Scala.js language per-se? If yes, I think the previous sentence already does this sufficiently well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was it. I removed the sentence.

@sjrd sjrd merged commit 4ef059b into scala-js:master Feb 12, 2021
@sjrd sjrd deleted the scalajs-1.5.0 branch February 12, 2021 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants