chakra-core / chakra-core/ChakraCore

ch.exe doesn't support module load cross-thread

Open
#3,318 3 comments 0 reactions 0 assignees View on GitHub
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

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.