0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

chore: fix failing bench (#14644)

This commit is contained in:
Bartek Iwańczuk 2022-05-17 16:28:03 +02:00 committed by GitHub
parent e58f77e431
commit b2ba0c54af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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