chakra-core / chakra-core/ChakraCore

Assertion failure in InlineCache.cpp

Open
#6,323 5 comments 0 reactions 0 assignees View on GitHub
Debugger
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

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

```js
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
```cpp
Assert(!needsProtoInvalidation || isProtoRegistered);
```

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.