diff options
-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 {}); |