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

Function assertLateError

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

Source from the content-addressed store, hash-verified

21}
22
23function assertLateError(s) {
24 assertDoesNotThrow(wrapInLazyFunction(s));
25 assertThrows(wrapInEagerFunction(s), ReferenceError);
26}
27
28// Web compatibility:
29assertLateError("foo() = 0;");

Calls 4

assertDoesNotThrowFunction · 0.85
wrapInLazyFunctionFunction · 0.85
wrapInEagerFunctionFunction · 0.85
assertThrowsFunction · 0.50

Tested by

no test coverage detected