chakra-core / chakra-core/ChakraCore

about JsDiagGetFunctionPosition. This maybe a bug.

Open
#3,325 1 comment 0 reactions 0 assignees View on GitHub
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

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.