David Sherret
David Sherret
Since `Deno.sleepSync` is going to be removed, it would be useful to provide a helper function that uses `Atomics.wait` in deno_std. - https://github.com/denoland/deno/pull/14719 - https://github.com/denoland/deno/issues/14708#issuecomment-1135707599
**Describe the bug** ```ts import { assertRejects } from "https://raw.githubusercontent.com/denoland/deno_std/main/testing/asserts.ts"; await assertRejects(function () { throw new Error("test") }); ``` **Expected behavior** Should throw because no promise was rejected. Node's `assertRejects`...
`stringify` in std/encoding/csv.ts takes a lot of reading to figure it out. After looking over the documentation and source code, I've discovered that I need to provide objects then specify...
This test uses "echo", but that's not available on Windows except when executing through `cmd`: ``` { "0": NotFound: program not found at Object.opSync (deno:core/01_core.js:177:12) at opRun (deno:runtime/js/40_process.js:29:17) at Object.run...
https://man7.org/linux/man-pages/man1/sleep.1.html
I have a test for this in the CLI here: https://github.com/denoland/deno/pull/14421 -- I wasn't sure how to test this here. This uses the jobs api in Windows in order to...
For example, say you had: ```json { "tasks": { "my_task": "./my_script.js" } } ``` And the script had: ```js #!/usr/bin/env -S deno run --unstable --allow-write --allow-read --allow-run // ...etc... ```...
https://github.com/denoland/dnt/issues/98#issuecomment-1159184592
TypeScript seems a little broken at the moment WRT package.json exports: https://github.com/microsoft/TypeScript/issues/33079 I think probably there should be some documentation update about using `typesVersions` because it seems like using `exports`...