MCPcopy Index your code
hub / github.com/nodejs/node / assertEarlyError

Function assertEarlyError

deps/v8/test/mjsunit/call-lhs-web-compat-early-errors.js:19–21  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

17}
18
19function assertEarlyError(s) {
20 assertThrows(wrapInLazyFunction(s), SyntaxError);
21}
22
23function assertLateError(s) {
24 assertDoesNotThrow(wrapInLazyFunction(s));

Calls 2

wrapInLazyFunctionFunction · 0.85
assertThrowsFunction · 0.50

Tested by

no test coverage detected