v8 is going to enable --harmony-function-tostring by default. For background, see:
https://bugs.chromium.org/p/v8/issues/detail?id=4958
https://chromium-review.googlesource.com/c/546941
--harmony-function-tostring canonicalizes the formatting of Function.prototype.toString(), which can change the result depending on how your function was declared. Additionally, the line numbers reported in stack traces and by the debugger will be different for functions created through the Function constructor in some cases.
This issue is to update the layout tests to work with the new behavior. Some tests can be adjusted to pass both with and without --harmony-function-tostring. Some tests will need rebaselining once the switch is enabled.
Comment 1 by jbanavatu@chromium.org
, Aug 10 2017