chakra-core / chakra-core/ChakraCore
ASSERTION 445506: (ChakraCore/lib/Backend/FlowGraph.cpp, line 2064)
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
ChakraCore version:
commit c3ead3f
Build cmd:
```shell
./build.sh --debug --static
```
Test case:
```js
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
```shell
./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)
```
Contributor guide
Assessment
This issue has not been assessed yet.