Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ test_invalid
Function
test_invalid
deps/v8/test/mjsunit/regexp-modifiers.js:6–9 ·
view source on GitHub ↗
(re)
Source
from the content-addressed store, hash-verified
4
5
6
function
test_invalid(re) {
7
assertEarlyError(`/${re}/`);
8
assertThrowsAtRuntime(`
new
RegExp(
'${re}'
)`, SyntaxError);
9
}
10
11
test_invalid(
'(?-:.)'
);
12
test_invalid(
'(?--:.)'
);
Callers
1
regexp-modifiers.js
File · 0.85
Calls
1
assertEarlyError
Function · 0.85
Tested by
no test coverage detected