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)

73 Branch
defect
Not set
normal

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:

  1. Open the browser
  2. Navigate to: about:blank
  3. Open the Web Console
  4. 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.

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.