Open Bug 1436109 Opened 6 years ago Updated 2 years ago

Single backslash inside strings is shown as double backslashes in console output

Categories

(DevTools :: Console, defect, P2)

58 Branch
defect

Tracking

(Not tracked)

People

(Reporter: lerbfae, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Build ID: 20180128191252

Steps to reproduce:

On console:
var a = 99
var b = `a=\\${a}`


Actual results:

Then the result is "a=\\99"


Expected results:

The result should have been "a=\99"
This does not happens in older versions of firefox (<56) or other browsers like waterfox,crhome o edge.
Tested on mac and windows
the data itself is correct.
the difference is how console formats backslash inside strings
Component: Untriaged → Developer Tools: Console
Summary: Double backslash before ${} not working as expected → Single backslash inside strings is shown as double backslashes in console output
Product: Firefox → DevTools
Created https://github.com/devtools-html/debugger.html/issues/6577 to fix this in devtools-reps (module used to render strings in the console).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.