Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix: value for flag --max-old-space-size=-1 of type size_t is out of …
Browse files Browse the repository at this point in the history
…bounds [int]
  • Loading branch information
harryitz committed May 6, 2024
1 parent 393c48e commit aa12947
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/MemoryManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export class MemoryManager {
#init(nexusConfig) {
this.memoryLimit = nexusConfig.getNested(NexusPropertiesConstants.MEMORY_LIMIT);

if (this.memoryLimit <= 0) {
Process.setMemoryLimit(-1);
} else {
if (this.memoryLimit > 0) {
Process.setMemoryLimit(this.memoryLimit);
}
}
Expand Down

0 comments on commit aa12947

Please sign in to comment.