How is this "object expected" JavaScript error possible?
<p>Apparently this line of code is triggering "Object expected":</p>

<pre><code>var bPid = (b != null &amp;&amp; typeof (b.processId) == "number") ? b.processId : 0;
</code></pre>

<p>Unfortunately I can't step through the code in the debugger since this is an intermittent error that shows up in a Windows SideShow gadget that I'm writing. But, I'd imagine someone should be able to tell me how it's even possible to get object expected given all the checks that I'm doing to attempt to prevent something like that.</p>
