std/assert
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
..
almost_equals_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
almost_equals.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
array_includes_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
array_includes.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
assert_test.ts test(assert): add "assert() throws if expr is falsy" test (#5267) 2024-07-03 13:38:22 +09:00
assert.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
assertion_error_test.ts feat(assert): add options parameter to AssertionError constructor (#5561) 2024-07-29 17:46:15 +10:00
assertion_error.ts chore(assert): mark options argument of AssertionError constructor unstable (#5573) 2024-07-30 11:15:52 +09:00
deno.json chore: release 2024.08.26 (#5824) 2024-08-26 17:33:29 +09:00
equal_test.ts
equal.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
equals_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
equals.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
exists_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
exists.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
fail_test.ts
fail.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
false_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
false.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
greater_or_equal_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
greater_or_equal.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
greater_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
greater.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
instance_of_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
instance_of.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
is_error_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
is_error.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
less_or_equal_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
less_or_equal.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
less_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
less.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
match_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
match.ts docs(assert): update assertMatch example (#5294) 2024-07-04 15:30:27 +09:00
mod.ts feat(assert/unstable): add assertNever (#5690) 2024-08-16 08:10:23 -07:00
never_test.ts feat(assert/unstable): add assertNever (#5690) 2024-08-16 08:10:23 -07:00
never.ts docs(archive,assert,cache,cli,encoding,html,http,net,streams,text): remove unstable Markdown alert (#5672) 2024-08-22 02:55:17 -04:00
not_equals_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
not_equals.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
not_instance_of_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
not_instance_of.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
not_match_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
not_match.ts docs(assert): update assertMatch example (#5294) 2024-07-04 15:30:27 +09:00
not_strict_equals_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
not_strict_equals.ts docs(assert): improve assertNotStrictEquals example (#5295) 2024-07-04 15:40:05 +09:00
object_match_test.ts fix(assert): fix assertObjectMatch() prints arrays as objects (#5503) 2024-07-23 12:16:10 +10:00
object_match.ts docs(assert): add additional example in assertObjectMatch docs (#5703) 2024-08-19 12:38:36 +09:00
rejects_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
rejects.ts refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855) 2024-08-29 08:55:24 +10:00
strict_equals_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
strict_equals.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
string_includes_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
string_includes.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
throws_test.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
throws.ts BREAKING(assert): remove assert from module names (#5176) 2024-07-02 13:42:40 +10:00
unimplemented_test.ts
unimplemented.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
unreachable_test.ts BREAKING(assert): make unreachable() consistent with @std/assert (#4943) 2024-06-03 13:33:17 +00:00
unreachable.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