std/io
Ian Bull 3b3a7617ab
refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855)
refactor(assert, datetime, fmt, io, streams): use `throw new Error` instead of `throw`

To ensure consistency across the codebase, this commit refactors the
codebase to use `throw new Error` instead of `throw` for throwing
errors.

https://github.com/denoland/std/issues/5854
2024-08-29 08:55:24 +10:00
..
testdata feat(io): re-introduce IO functions (#4128) 2024-01-12 18:34:12 +11:00
_common.ts feat(io): re-introduce IO functions (#4128) 2024-01-12 18:34:12 +11:00
_constants.ts feat(io): re-introduce IO functions (#4128) 2024-01-12 18:34:12 +11:00
_test_common.ts refactor(archive,expect,io,log,toml,yaml): remove private and public access modifiers (#5077) 2024-06-21 14:13:08 +10:00
buf_reader_test.ts refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855) 2024-08-29 08:55:24 +10:00
buf_reader.ts refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855) 2024-08-29 08:55:24 +10:00
buf_writer_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
buf_writer.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
buffer_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
buffer.ts refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855) 2024-08-29 08:55:24 +10:00
copy_n_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
copy_n.ts refactor(io): create a style guide for error messages, align error messages to the style guide (#5671) 2024-08-20 12:27:43 +09:00
copy_test.ts refactor(io): use writeAll() within copy() (#5580) 2024-07-30 15:52:20 +10:00
copy.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
deno.json chore: release 2024.08.26 (#5824) 2024-08-26 17:33:29 +09:00
iterate_reader_test.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
iterate_reader.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
limited_reader_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
limited_reader.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
mod.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
multi_reader_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
multi_reader.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
read_all_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
read_all.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
read_delim.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
read_int_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
read_int.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
read_lines_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
read_lines.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
read_long_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
read_long.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
read_range_test.ts refactor(io): create a style guide for error messages, align error messages to the style guide (#5671) 2024-08-20 12:27:43 +09:00
read_range.ts refactor(io): create a style guide for error messages, align error messages to the style guide (#5671) 2024-08-20 12:27:43 +09:00
read_short_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
read_short.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
read_string_delim_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
read_string_delim.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
reader_from_stream_reader_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
reader_from_stream_reader.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
slice_long_to_bytes_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
slice_long_to_bytes.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
string_reader_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
string_reader.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
string_writer_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
string_writer.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
to_readable_stream_test.ts refactor(io): create a style guide for error messages, align error messages to the style guide (#5671) 2024-08-20 12:27:43 +09:00
to_readable_stream.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
to_writable_stream_test.ts refactor(io): create a style guide for error messages, align error messages to the style guide (#5671) 2024-08-20 12:27:43 +09:00
to_writable_stream.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00
types.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
write_all_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
write_all.ts docs(io): document std/io (#5656) 2024-08-08 23:20:43 +09:00