tc39 / Function-prototype-toString-revision

:fishing_pole_and_fish: ECMA-262 proposal to update Function.prototype.toString

Home Page:https://tc39.github.io/Function-prototype-toString-revision

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Does this proposal guarantees that parameters names match the source?

nicolo-ribaudo opened this issue · comments

function fn(foo) {}

Can an engine return function fn(a) {} for fn.toString()?

The parameter names are part of the source text matched by the function, so they are preserved.