Closed
Bug 1620192
Opened 5 years ago
Closed 5 years ago
Unexpected syntax error in web console when entering an object literal expression.
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 972530
People
(Reporter: anders.granlund.0, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
Steps to reproduce:
- Open the browser
- Navigate to: about:blank
- Open the Web Console
- Type in the following and press ENTER: {a:1,b:2}
Actual results:
I get back the following error:
SyntaxError: unexpected token: ':'
Expected results:
I expected the result of the expression to be printed out (the result in this case is an object).
Note 1: Google chrome behaves a expected.
Note 2: Using the expression ({a:1,b:2}) works.
Updated•5 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Component: Untriaged → Console
Product: Firefox → DevTools
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•