1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/core/examples
Ben Noordhuis d77452c79f
core: fix http_bench_json_ops, register Error (#8860)
Fixes the following runtime error for me when benchmarking:

    thread 'main' panicked at 'called `Result::unwrap()` on an `Err`
    value: Error: Unregistered error class: "Error"
      Connection reset by peer (os error 104)
      Classes of errors returned from ops should be registered via
      Deno.core.registerErrorClass().
        at processResponse (deno:core/core.js:219:13)
        at Object.jsonOpAsync (deno:core/core.js:240:12)
        at async read (http_bench_json_ops.js:29:21)
        at async serve (http_bench_json_ops.js:45:19)',
        core/examples/http_bench_json_ops.rs:260:28
2020-12-22 18:01:07 +01:00
..
hello_world.rs Add example for deno_core (#7611) 2020-09-23 10:56:36 -04:00
http_bench_bin_ops.js core: implement 'AsyncRefCell' and 'ResourceTable2' (#8273) 2020-11-25 01:15:14 +01:00
http_bench_bin_ops.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
http_bench_json_ops.js core: fix http_bench_json_ops, register Error (#8860) 2020-12-22 18:01:07 +01:00
http_bench_json_ops.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00