Navigation Menu

Skip to content

Commit

Permalink
Editorial: Simplify OrdinaryFunctionCreate's _kind_ parameter
Browse files Browse the repository at this point in the history
The only effect of OrdinaryFunctionCreate's _kind_ parameter
is on the [[ThisMode]] of the new function.
And although _kind_ has three possible values (~Normal~, ~Method~, ~Arrow~),
the only thing that matters is whether or not it's ~Arrow~.
So replace it with parameter _thisMode_ that has two possible values:
~lexical-this~ and ~nonlexical-this~.

Suggested by @syg in:
tc39#1562 (comment)
  • Loading branch information
jmdyck committed Oct 24, 2019
1 parent 2740131 commit b30238b
Showing 1 changed file with 29 additions and 31 deletions.

0 comments on commit b30238b

Please sign in to comment.