diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-25 17:43:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 17:43:31 -0400 |
commit | d8714281b40f457420608c7e766fe787609c7afb (patch) | |
tree | f034d9515be1fd12471f94e20b2b068b492fe768 /core/http_bench.rs | |
parent | 5ae78eb1de378f04d0b9d54842bcb898053467d6 (diff) |
Resolve callback moved from Behavior to mod_instantiate() (#1999)
This simplifies the Behavior trait and makes it more explicit where the
resolve callback is being made.
Also s/StartupScript/Script
Diffstat (limited to 'core/http_bench.rs')
-rw-r--r-- | core/http_bench.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/http_bench.rs b/core/http_bench.rs index cbb4bdea4..8b6a8e8fc 100644 --- a/core/http_bench.rs +++ b/core/http_bench.rs @@ -102,17 +102,12 @@ impl Behavior for HttpBench { fn startup_data(&mut self) -> Option<StartupData> { let js_source = include_str!("http_bench.js"); - Some(StartupData::Script(StartupScript { + Some(StartupData::Script(Script { source: js_source.to_string(), filename: "http_bench.js".to_string(), })) } - fn resolve(&mut self, _specifier: &str, _referrer: deno_mod) -> deno_mod { - // HttpBench doesn't do ES modules. - unimplemented!() - } - fn dispatch( &mut self, control: &[u8], |