mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
chore: fix failing bench (#14644)
This commit is contained in:
parent
e58f77e431
commit
b2ba0c54af
1 changed files with 2 additions and 7 deletions
|
@ -28,15 +28,10 @@ fn setup() -> Vec<Extension> {
|
||||||
Extension::builder()
|
Extension::builder()
|
||||||
.js(vec![(
|
.js(vec![(
|
||||||
"setup",
|
"setup",
|
||||||
Box::new(|| {
|
r#"
|
||||||
Ok(
|
|
||||||
r#"
|
|
||||||
const { TextDecoder } = globalThis.__bootstrap.encoding;
|
const { TextDecoder } = globalThis.__bootstrap.encoding;
|
||||||
const hello12k = Deno.core.encode("hello world\n".repeat(1e3));
|
const hello12k = Deno.core.encode("hello world\n".repeat(1e3));
|
||||||
"#
|
"#,
|
||||||
.to_owned(),
|
|
||||||
)
|
|
||||||
}),
|
|
||||||
)])
|
)])
|
||||||
.state(|state| {
|
.state(|state| {
|
||||||
state.put(Permissions {});
|
state.put(Permissions {});
|
||||||
|
|
Loading…
Add table
Reference in a new issue