Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9583950
assert_throws_async.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
232 B
Referenced Files
None
Subscribers
None
assert_throws_async.js
View Options
const
assert
=
require
(
"assert"
);
module
.
exports
=
async
function
assertThrowsAsync
(
fn
,
regExp
)
{
let
f
=
()
=>
{};
try
{
await
fn
();
}
catch
(
e
)
{
f
=
()
=>
{
throw
e
;
};
}
finally
{
assert
.
throws
(
f
,
regExp
);
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 11:13 (7 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
984271
Default Alt Text
assert_throws_async.js (232 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment