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
```

Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in
This is a GitHub Issue
repo:ChakraCore
owner:chakra-core
Title : Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in
Issue date:

--- start body ---
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
```

--- end body ---
