chakra-core / chakra-core/ChakraCore

Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in

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

ChakraCore version:
commit c3ead3f

Build cmd:
```shell
./build.sh --debug --static
```

Test case:
```js
function opt(){
async function foo(a) {
for (let i = 3705358555; i < foo; i = i + 3705358555) {
const v7 = await a;
}
function bar() {
'use strict';
const x = [5.0];
const y = new Int32Array();
y[x] = 5.0;
}
const z = bar();
}
const zz = foo();
return zz;
}

for(let i=0; i<1024; i++){
opt();
}
```

Execute
```shell
./ch ./test.js
```

Error msg:
```
ASSERTION 2776368: (ChakraCore/lib/Backend/BailOut.cpp, line 1536) Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in -- the generator object and a resume yield object
Failure: (args.Info.Count == 2)
Illegal instruction
```

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.