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

Function NoHang

deps/v8/test/mjsunit/regexp-capture-3.js:164–166  ·  view source on GitHub ↗
(re)

Source from the content-addressed store, hash-verified

162// character in it can never match an Latin1 string we can test that the
163// relevant node is removed by verifying that there is no hang.
164function NoHang(re) {
165 "This is an ASCII string that could take forever".match(re);
166}
167
168NoHang(/(((.*)*)*x)Ā/); // Continuation after loop is filtered, so is loop.
169NoHang(/(((.*)*)*Ā)foo/); // Body of loop filtered.

Callers 1

Calls 1

matchMethod · 0.65

Tested by

no test coverage detected