Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

pretty print exception bug #7581

Conversation

jainsneha23
Copy link
Contributor

Fixes #7477

Summary of Changes

  • Pass line number as is, from utils/location.js

Test Plan

  • Open a file, pretty print it
  • Close the pretty printed file tab
  • Again pretty print it
  • The prettified file opens without error

@jainsneha23 jainsneha23 force-pushed the bug-7477-pretty-print-exception branch from 1a9bd45 to 21c5366 Compare December 21, 2018 18:04
@jainsneha23
Copy link
Contributor Author

Note: This error got introduced in this commit 4a43e9a

After introducing flow, line number for SourceLocation has to be a number. If set to zero, it throws the current error. If set to 1, there's a flash at line 1 while opening a file in the editor. NaN seems to be a workaround, but doesn't make any sense. So setting it as 1 for now. May be we need to handle the flash somehow.

@jasonLaster
Copy link
Contributor

This looks good. CC @darkwing

@AnshulMalik
Copy link
Contributor

Looking good 👍

Copy link
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @jainsneha23 !

@darkwing darkwing merged commit 0feb979 into firefox-devtools:master Jan 2, 2019
@jainsneha23 jainsneha23 deleted the bug-7477-pretty-print-exception branch January 2, 2019 18:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants