ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

ASSERTION Failure: (opndConstructor->m_sym->m_isSingleDef) in ChakraCore/lib/Backend/IRBuilder.cpp, line 2394

Open anbu1024 opened this issue 3 years ago • 1 comments

commit

41ad58a9eebf8d52a83424c8fccfaacdb14105ec

Build platform

Ubuntu 20.04

Build steps

./build.sh --debug

poc

function foo(o) {
    switch (o.f) {
        case 1:
            return 1;
        case 2:
            return class Baz{};
        default:
            return 0;
    }
}

function bar() {
    for (var i = 0; i < 64; ++i)
        x += foo( { f: 5 } );
}

var x = bar();

assert log

ASSERTION 2399095: (ChakraCore/lib/Backend/IRBuilder.cpp, line 2394) opndConstructor->m_sym->m_isSingleDef
 Failure: (opndConstructor->m_sym->m_isSingleDef)
Illegal instruction

anbu1024 avatar Mar 09 '22 13:03 anbu1024

I can confirm this, though the failure is in debug mode only.

ppenzin avatar Mar 26 '22 00:03 ppenzin