Bug 1687400 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

This should work. The `sourceEnd` doesn't provide any further information.

The [script-source-extent](https://searchfox.org/mozilla-central/source/js/src/jit-test/tests/parser/script-source-extent.js) test shows a number of the potentially issues, and it looks fine. The one particularly tricky one is lazy arrow functions in default argument expressions, but only one of these is ever delazified.

Edit: One edge case will be `() => {};` where the function starts at 0 which is currently the null key. This is easy to fix though.

Back to Bug 1687400 Comment 1