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

Function thrower

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

Source from the content-addressed store, hash-verified

193 () => (async e => { throw new MyError(e) })("boom!!"), MyError, "boom!!");
194assertThrowsAsync(
195 () => ({ async thrower(e) { throw new MyError(e); } }).thrower("boom!1!"),
196 MyError, "boom!1!");
197assertThrowsAsync(
198 () => AsyncFunction("msg", "throw new MyError(msg)")("boom!2!!"),

Callers 3

CheckStackTraceFunction · 0.50
CheckStackTraceFunction · 0.50
osr-infinite.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected