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

Commit

Permalink
fix: prevent infinite recursion on user-defined toString
Browse files Browse the repository at this point in the history
Values are serialized when recording function applications.
Serialization may invoke a user-defined `toString` method. If this
method is instrumented this leads to infinite recursion.
  • Loading branch information
lachrist authored and dustinbyrne committed May 15, 2023
1 parent f6fad45 commit d9a1715
Show file tree
Hide file tree
Showing 6 changed files with 339 additions and 222 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ globals:
clearTimeout: readonly
setInterval: readonly
clearInterval: readonly
TextEncoder: readonly
TextDecoder: readonly
BigInt: readonly
parser: "@babel/eslint-parser"
env:
es2017: true
Expand Down
Loading

0 comments on commit d9a1715

Please sign in to comment.