Closed
Bug 1578818
Opened 6 years ago
Closed 6 years ago
Unassigned object literal incorrectly parsed as a block statement in the JS console
Categories
(DevTools :: Console, defect)
Tracking
(firefox69 affected, firefox70 affected, firefox71 affected)
RESOLVED
DUPLICATE
of bug 972530
People
(Reporter: kalt.steven, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
test 1: In the console, I entered: {"a": 1}.
test 2: In the console. I entered {a: 1}.
Actual results:
test 1: My statement returned SyntaxError: unexpected token: ':'.
test 2: My statement returned 1.
This means the javascript interpreter thought I was entering a block statement in both cases.
Expected results:
I should have received an Object instance, {a: 1}.
Updated•6 years ago
|
Status: UNCONFIRMED → NEW
status-firefox69:
--- → affected
status-firefox70:
--- → affected
status-firefox71:
--- → affected
Component: Untriaged → Console
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → DevTools
Hardware: Unspecified → Desktop
Comment 1•6 years ago
|
||
Hello Kalt, thanks for reporting this issue.
it looks a lot like Bug 972530, so I'm going to close it as duplicate.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•