chakra-core / chakra-core/ChakraCore

ASSERTION: ChakraCore/lib/Backend/FlowGraph.cpp, line 1832

Open
#6,944 0 comments 0 reactions 0 assignees View on GitHub
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 v1 = [5];
for (let j = 0; j < 5; j++) {

try {
}
catch(e) {

const v16 = 1073741824;

const v21 = -1;

for (let i = 0; i < 3; i++) {

switch (i) {
case v21:
try {
break;
}
catch(v26) {
}
finally {
}
break;
}
}
}
}
}

for(let i=0; i < 0x300; i++) {
foo();
}
```

Execute
```shell
./ch --bgjit --oopjit ./test.js
```

Error msg:
```
ASSERTION 2626189: (ChakraCore/lib/Backend/FlowGraph.cpp, line 1832) Bad region type for the try
Failure: (predRegion->GetType() == RegionTypeTry)
Illegal instruction (core dumped)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.