Skip to main content

handle_id

Function handle_id 

Source
pub fn handle_id(v: &Value) -> Option<u64>
Expand description

The timer id behind a handle object, or None for anything else.

Read straight off the heap slot rather than through ToPrimitive: the clear* builtins run inside a with_host borrow, and coercing via a valueOf call would re-enter with_host and panic on the RefCell.