Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
function
assertLateError(s) {
24
assertDoesNotThrow(wrapInLazyFunction(s));
25
assertThrows(wrapInEagerFunction(s), ReferenceError);
26
}
27
28
// Web compatibility:
29
assertLateError(
"foo() = 0;"
);
Callers
1
call-lhs-web-compat-early-errors.js
File · 0.85
Calls
4
assertDoesNotThrow
Function · 0.85
wrapInLazyFunction
Function · 0.85
wrapInEagerFunction
Function · 0.85
assertThrows
Function · 0.50
Tested by
no test coverage detected