MCPcopy Create free account
hub / github.com/nodejs/node / asyncDeclThrower

Function asyncDeclThrower

deps/v8/test/mjsunit/es8/async-await-basic.js:187–187  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

185
186// Throw completion
187async function asyncDeclThrower(e) { throw new MyError(e); }
188assertThrowsAsync(() => asyncDeclThrower("boom!"), MyError, "boom!");
189assertThrowsAsync(
190 () => (async function(e) { throw new MyError(e); })("boom!!!"),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected