chakra-core / chakra-core/ChakraCore
about JsDiagGetFunctionPosition. This maybe a bug.
Open
Bug
Severity: 3
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
```
auto str = "function test(){}"
auto fn = JsRun str
JsValueRef info = JS_INVALID_REFERENCE
auto result = JsDiagGetFunctionPosition fn, &info
```
is ok.
```
auto str = "function test(){
console.log("");
console.log("");
console.log("");
console.log("");
... repeat 200 ...// need more in your computer maybe
console.log("");
}
auto fn = JsRun str
JsValueRef info = JS_INVALID_REFERENCE
auto result = JsDiagGetFunctionPosition fn, &info
```
assert at FunctionBody:1757 of ChakraCore Release 1.5.2
Assert(IsFunctionBody());
0x00007FFE610D72F8 (ChakraCore.dll) test.exe 0xC0000420: Assertion Failure。
Contributor guide
Assessment
This issue has not been assessed yet.