ChakraCore
ChakraCore copied to clipboard
ASSERTION Failure: "reg < this->GetConstantCount()" in ChakraCore/lib/Runtime/./Base/FunctionBody.h, line 2977
commit
41ad58a9eebf8d52a83424c8fccfaacdb14105ec
Build platform
Ubuntu 20.04
Build steps
./build.sh --debug
poc
function foo() {
(function () {
function bar(
a = 1,
b = function () {
return a;
}
)
{
var arguments = 3;
}
}());
}
WScript.Attach(foo);
assert log
ASSERTION 2397793: (ChakraCore/lib/Runtime/./Base/FunctionBody.h, line 2977) reg < this->GetConstantCount()
Failure: (reg < this->GetConstantCount())
Illegal instruction
I can reproduce this, though this is a debugger mode test and it fails only in debug mode.