Closed Bug 1508118 Opened 6 years ago Closed 2 years ago

Pretty printing a JS file with a syntax error results in indefinate loading

Categories

(DevTools :: Debugger, defect, P3)

65 Branch
x86
Windows 10
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME
Iteration:
65.2 - Nov 16

People

(Reporter: mattmarcus58, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [debugger-reserve])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

1. Load up http://theprojector.sg/filmsandevents/#film
2. Go to debugger > Source > theprojector.sg > wp-content/themes/... > js > script.min.js > Pretty print


Actual results:

The file shows the 'Loading' screen indefinately


Expected results:

Even with the small syntax error ('+' at the beggining for some reason), the file should be able to be pretty printed. Other JS beautifiers worked OK. At the very least, the pretty printer should fail.
Iteration: --- → 65.2 (Nov 16)
Component: Untriaged → Debugger
OS: Unspecified → Windows 10
Product: Firefox → DevTools
Hardware: Unspecified → x86
Priority: -- → P3
Blocks: dbg-71

Thanks for filing Matt. I hope to look into this soon.

Whiteboard: [debugger-mvp]

Error being shown right now: Error loading this URI: lastToken is undefined

Whiteboard: [debugger-mvp] → [debugger-reserve]
Severity: normal → S3

Tested STR from Comment 0 and it works fine in latest Nightly

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: