diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-07-31 11:02:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-31 12:02:59 +0200 |
| commit | 02865cb5a270b9a2229863e83582f2a8b5115b78 (patch) | |
| tree | 56529bdc267d6779be2efb8c92e58119e3687f24 /cli/tests/testdata/check | |
| parent | e348c11b64410cf91bd5925ffbc5a9009947a80f (diff) | |
feat(bench): add BenchContext::start() and BenchContext::end() (#18734)
Closes #17589.
```ts
Deno.bench("foo", async (t) => {
const resource = setup(); // not included in measurement
t.start();
measuredOperation(resource);
t.end();
resource.close(); // not included in measurement
});
```
Diffstat (limited to 'cli/tests/testdata/check')
| -rw-r--r-- | cli/tests/testdata/check/deno_unstable_not_found/main.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/testdata/check/deno_unstable_not_found/main.out b/cli/tests/testdata/check/deno_unstable_not_found/main.out index dfe3cf317..dcc646622 100644 --- a/cli/tests/testdata/check/deno_unstable_not_found/main.out +++ b/cli/tests/testdata/check/deno_unstable_not_found/main.out @@ -6,7 +6,7 @@ Deno.openKv; 'open' is declared here. export function open( ~~~~ - at asset:///lib.deno.ns.d.ts:1667:19 + at asset:///lib.deno.ns.d.ts:[WILDCARD]:19 TS2339 [ERROR]: Property 'createHttpClient' does not exist on type 'typeof Deno'. 'Deno.createHttpClient' is an unstable API. Did you forget to run with the '--unstable' flag? If not, try changing the 'lib' compiler option to include 'deno.unstable' or add a triple-slash directive to your entrypoint: /// <reference lib="deno.unstable" /> Deno.createHttpClient; |
