chakra-core / chakra-core/ChakraCore
Usage of SRCINFO->moduleID for ES6 moduleId may not be appropriate
Open
Codebase Quality
Task
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Currently storing ES6 `moduleId` in `SRCINFO->moduleID`.
For example, in `SourceTextModuleRecord::ParseSource()`:
```C++
this->parser = (Parser*)AllocatorNew(ArenaAllocator, allocator, Parser, scriptContext);
srcInfo->moduleID = moduleId;
```
This may not be appropriate and needs investigation.
Contributor guide
Assessment
This issue has not been assessed yet.