diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-05-17 16:28:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 16:28:03 +0200 |
commit | b2ba0c54afe806770a9a556b8e622b3c8c0bb5d1 (patch) | |
tree | b638fc02af388c396028d1f3593f7f7de17405a0 /ext/web/benches/encoding.rs | |
parent | e58f77e431c7f9404bd76f6b7cf5b6d7841c0b0f (diff) |
chore: fix failing bench (#14644)
Diffstat (limited to 'ext/web/benches/encoding.rs')
-rw-r--r-- | ext/web/benches/encoding.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/web/benches/encoding.rs b/ext/web/benches/encoding.rs index 5b8b2a988..61c853328 100644 --- a/ext/web/benches/encoding.rs +++ b/ext/web/benches/encoding.rs @@ -28,15 +28,10 @@ fn setup() -> Vec<Extension> { Extension::builder() .js(vec![( "setup", - Box::new(|| { - Ok( - r#" + r#" const { TextDecoder } = globalThis.__bootstrap.encoding; const hello12k = Deno.core.encode("hello world\n".repeat(1e3)); - "# - .to_owned(), - ) - }), + "#, )]) .state(|state| { state.put(Permissions {}); |