Open anbu1024 opened 1 year ago
ChakraCore version: commit c3ead3f
Build cmd:
./build.sh --debug --static
Test case:
function foo(){ const s = /(\w+)/imsu; const sss = s.toString(); const match = sss.match(sss); try { const x = ~sss; switch (x) { case x: try { break; } finally { } break; default: break; } } finally { s.compile(sss); } const ret = Object(match, 1, match, 1); return ret; } let i = 0; while(i < 1024) { foo(); i++; }
Execute
./ch ./test.js
Error msg:
ASSERTION 445506: (ChakraCore/lib/Backend/FlowGraph.cpp, line 2064) tryRegion->GetMatchingFinallyRegion(true) != nullptr Failure: (tryRegion->GetMatchingFinallyRegion(true) != nullptr) Illegal instruction (core dumped)
ChakraCore version: commit c3ead3f
Build cmd:
Test case:
Execute
Error msg: