chakra-core / chakra-core/ChakraCore

ASSERTION: ChakraCore/lib/Backend/Inline.cpp, line 1096

Open
#6,942 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(){

function bar(a1, a2) {
switch (bar) {
case a2:
const a3 = a1();
break;
}
}

function baz(a1, a2, a3, a4) {
const x = a2 && baz;
const y = a2.apply(Uint16Array);
}

const r = baz(Uint16Array, bar, Uint16Array, bar);
return r;
}

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

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

Error msg:
```
ASSERTION 2622358: (ChakraCore/lib/Backend/Inline.cpp, line 1096) defInstr != nullptr
Failure: (defInstr != nullptr)
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.