Why are some region variables in Chrome Dev Tools grayed out (light purple)?

Why are some region variables in Chrome Dev Tools grayed out (light purple)?

Chrome Dev Tools - Scope Variables

+8
google-chrome-devtools
source share
2 answers

It seems that gray variables are not enumerable. When pausing a breakpoint, do greyedOutVariableName.propertyIsEnumerable('propertyName') and it should return false.

Object.prototype.propertyIsEnumerable ()

Thanks to ckocagil for # chromium support on Freenode for this!

+9
source share

I want to indicate that the accepted answer is incorrect.

try

 window.chrome.propertyIsEnumerable('webstore') 

and you get true , but window.chrome.webstore is light purple.

console result

Press the (...) button to call the color dark purple, so there are two reasons for light purple.

0
source share

All Articles