From b2ba0c54afe806770a9a556b8e622b3c8c0bb5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 17 May 2022 16:28:03 +0200 Subject: chore: fix failing bench (#14644) --- ext/web/benches/encoding.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'ext') 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::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 {}); -- cgit v1.2.3