Skip to content

Commit b30238b

Browse files
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

File tree

0 commit comments

Comments
 (0)