Closed
Bug 1033031
Opened 10 years ago
Closed 10 years ago
console.log doesn't create a snapshot of objects and arrays
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 754861
People
(Reporter: cork, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
1.24 KB,
text/html
|
Details |
When an object is changed after it's been given to console.log but before the event loop happens, console.log outputs the new value instead of what was originally given to console.log.
STR:
1. Open console
2. Open testase
The json output and the Object output should be the same, but it outputs:
"["test","test2"]" Array [ "test", "test6969" ]
"["test","test6969"]" Array [ "test", "test6969" ]
"{"test":"test","test2":"test2"}" Object { test: "test", test2: "test200" }
"{"test":"test","test2":"test6969"}" Object { test: "test", test2: "test200" }
"{"test":"test","test2":"test9696"}" Object { test: "test", test2: "test200" }
"{"test":"test","test2":"test5"}" Object { test: "test", test2: "test200" }
"{"test":"test","test2":"test100"}" Object { test: "test", test2: "test200" }
"{"test":"test","test2":"test200"}" Object { test: "test", test2: "test200" }
"{"test":"test","test2":"test300"}" Object { test: "test", test2: "test400" }
"{"test":"test","test2":"test400"}" Object { test: "test", test2: "test400" }
Flags: firefox-backlog?
Comment 1•10 years ago
|
||
There is detailed discussion about this in bug 754861.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•10 years ago
|
Flags: firefox-backlog?
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•