[wp-trac] [WordPress Trac] #25047: Improve heartbeat queue checking

WordPress Trac noreply at wordpress.org
Tue Aug 20 17:35:02 UTC 2013


#25047: Improve heartbeat queue checking
--------------------------+-----------------------
 Reporter:  evansolomon   |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  3.7
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:4 evansolomon]:
 > As for the original version, it would have returned something `null`-y,
 but not actually `null`.

 Ah yes, one of the "great mysteries" in JS :)

 {{{
 undef1 // throws "ReferenceError: undef1 is not defined"
 typeof undef1 // 'undefined'

 var undef2;
 undef2 // no error
 typeof undef2 // 'undefined'

 var obj = {};
 obj.undef3 // no error
 typeof obj.undef3 // 'undefined'
 }}}

 So undef1 is really really undefined. Both undef2 and undef3 are still
 undefined but not as much undefined as undef1. They behave similarly to
 being set to null, however JS wouldn't usually set anything explicitly to
 null.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25047#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list