Skip to content

Assertion failure in InlineCache.cpp #6323

Open
@fatcerberus

Description

@fatcerberus

I discovered this while trying to produce a repro for #6160. The following code when run in ch hits an assertion in InlineCache.cpp:

WScript.Attach(() => {
    let iter = g();
    iter.next();
    iter.next();
});
(async () => {
    await 777;
    await 1206;
    WScript.Detach(() => {});
})();

function* g() { yield 0; }

The assertion that was hit is:
https://github.com/microsoft/ChakraCore/blob/master/lib/Runtime/Language/InlineCache.cpp#L570

        Assert(!needsProtoInvalidation || isProtoRegistered);

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebuggerItems related to debugger support (WScript, debug context, etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions