[−][src]Trait deno::Loader
Associated Types
Loading content...Required methods
fn resolve(specifier: &str, referrer: &str) -> Result<String, Self::Error>
Returns an absolute URL. When implementing an spec-complaint VM, this should be exactly the algorithm described here: https://html.spec.whatwg.org/multipage/webappapis.html#resolve-a-module-specifier
fn load(&mut self, url: &str) -> Box<SourceCodeInfoFuture<Self::Error>>
Given an absolute url, load its source code.
fn isolate_and_modules<'a: 'b + 'c, 'b, 'c>(
&'a mut self
) -> (&'b mut Isolate, &'c mut Modules)
&'a mut self
) -> (&'b mut Isolate, &'c mut Modules)