Imagine this scenario:
var q = document.querySelectorAll;
q('body');
Suddenly, an "Illegal invocation" error pops up in Chrome. It's puzzling why this happens, especially considering that not all native code functions behave this way. Take for example:
var o = Object; // a native code function
var x = new o();
Here, everything runs smoothly without any errors. This issue seems to mainly arise when working with the document and console objects. What are your thoughts on this matter?