A
A
AlexeyMoshkin2017-05-12 09:31:07
JavaScript
AlexeyMoshkin, 2017-05-12 09:31:07

Why does Chrome DevTools display an object incorrectly?

I am developing an extension for a browser, from the content of the script I display the

console.log( task, task.taskName );

Log object in the console:
ef88491172.png

Why are the values ​​different? Is this a chrome bug or are they really 2 different objects?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2017-05-12
@AlexeyMoshkin

Chrome logs a live object. It shows all the changes that were made after logging. Apparently at some point the value of the taskName field changes somewhere

A
Alexander Pushkarev, 2017-05-12
@AXP-dev

2 different objects

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question