Commit b30238b
committed
Editorial: Simplify OrdinaryFunctionCreate's _kind_ parameter
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:
#1562 (comment)1 parent 2740131 commit b30238b
1 file changed
Lines changed: 29 additions & 31 deletions
0 commit comments