Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Apr 2, 2019
1 parent 31b5704 commit 709500c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/modules.rs
Expand Up @@ -160,7 +160,7 @@ impl<'l, L: Loader> Future for RecursiveLoad<'l, L> {
}

let (isolate, modules) = loader.isolate_and_modules();

let root_id = modules.get_id(root).unwrap();
let mut resolve = |specifier: &str, referrer_id: deno_mod| -> deno_mod {
let referrer = modules.get_name(referrer_id).unwrap();
let url = L::resolve(specifier, referrer);
Expand All @@ -169,9 +169,6 @@ impl<'l, L: Loader> Future for RecursiveLoad<'l, L> {
None => 0,
}
};

let root_id = modules.get_id(&root).unwrap();

isolate
.mod_instantiate(root_id, &mut resolve)
.map_err(Either::JSError)?;
Expand Down

0 comments on commit 709500c

Please sign in to comment.