This is not a bug per se, but feels like an inconsistency.

Try to run this code in the console on the page with ExtJS loaded for example on the official docs: http://docs.sencha.com/ext-js/4-2/
...