Skip to content

Commit

Permalink
Fix ethereumjs mode OOM in test
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed May 12, 2023
1 parent 296d4cd commit 12fa6a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ export class VMDebugTracer {
}

private _getMemory(step: InterpreterStep): string[] {
// if disableMemory is true, we just return an empty array to
// avoid wasting (real) memory, since we are going to discard
// this later anyway
if (this._config?.disableMemory === true) {
return [];
}

const memory = Buffer.from(step.memory)
.toString("hex")
.match(/.{1,64}/g);
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3605,6 +3605,13 @@ decompress-response@^6.0.0:
dependencies:
mimic-response "^3.1.0"

deep-eql@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df"
integrity sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==
dependencies:
type-detect "^4.0.0"

deep-eql@^4.0.1, deep-eql@^4.1.2:
version "4.1.3"
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.3.tgz#7c7775513092f7df98d8df9996dd085eb668cc6d"
Expand Down

0 comments on commit 12fa6a1

Please sign in to comment.