Struct js::jsapi::SourceHook [] [src]

#[repr(C)]
pub struct SourceHook { pub _vftable: *const _vftable_SourceHook, }

A class of objects that return source code on demand.

When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't retain the source code (and doesn't do lazy bytecode generation). If we ever need the source code, say, in response to a call to Function.prototype. toSource or Debugger.Source.prototype.text, then we call the 'load' member function of the instance of this class that has hopefully been registered with the runtime, passing the code's URL, and hope that it will be able to find the source.

Fields

Trait Implementations

impl Debug for SourceHook
[src]

[src]

Formats the value using the given formatter.