An RAII implementation of a "scoped lock" of the JS engine. When this structure is dropped (falls out of scope), the engine will be unlocked.
Types of JS values that support the
BorrowMut traits can be inspected while the engine is locked by passing a reference to a
Lock to their methods.
impl<'a> !RefUnwindSafe for Lock<'a>
impl<'a> UnwindSafe for Lock<'a>
type Error = Infallible
The type returned in the event of a conversion error.