chakra-core / chakra-core/ChakraCore

ASSERTION Failure: (scopeSlotCount != 0)

Open
#6,313 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

The following case triggers assertion failure.
```js
(function foo() {
function bar() {
foo;
}
with (1) foo();
})();
```
```
ASSERTION 20300: (E:\ChakraCore\lib\Runtime\Language\InterpreterStackFrame.cpp, line 7558) scopeSlotCount != 0
Failure: (scopeSlotCount != 0)
FATAL ERROR: ch.exe failed due to exception code c0000420
```
Reproduced on commit `45de85381bbb83dda9899e88e115d0e99a69e99c`

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.