chakra-core / chakra-core/ChakraCore
ch.exe doesn't support module load cross-thread
Open
Test Bug
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
```javascript
// mod0.js
console.log("mod0");
```
```javascript
// bug0.js
// expected: mod0
// actual: ASSERTION (bin\ch\WScriptJsrt.h, line 83) false Unexpected JsErrorCode: JsErrorWrongThread
WScript.LoadScript(`WScript.LoadScriptFile("./mod0.js", "module");`, "crossthread");
```
```javascript
// bug1.js
// expected: mod0
// actual: ASSERTION 256420: (e:\sdxgit3\inetcore\jscript\core\lib\common\Memory/Recycler.inl, line 53) Allocating from the recycler can only be done on the main thread
WScript.LoadScript(`import("./mod0.js");`, "crossthread");
```
Contributor guide
Assessment
This issue has not been assessed yet.