Skip to content

Commit

Permalink
Merge pull request #6451 from Agoric/patch-for-stack-utils-bug
Browse files Browse the repository at this point in the history
Patch bug in `stack-utils` npm package
  • Loading branch information
mergify[bot] authored Oct 18, 2022
2 parents a8b2916 + 7eceb12 commit 5e5ae42
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patches/stack-utils+2.0.5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/node_modules/stack-utils/index.js b/node_modules/stack-utils/index.js
index ed14bd3..ad9eeb1 100644
--- a/node_modules/stack-utils/index.js
+++ b/node_modules/stack-utils/index.js
@@ -161,7 +161,7 @@ class StackUtils {
setFile(res, site.getFileName(), this._cwd);

if (site.isConstructor()) {
- res.constructor = true;
+ Object.defineProperty(res, 'constructor', { value: true });
}

if (site.isEval()) {
@@ -260,7 +260,7 @@ class StackUtils {
setFile(res, file, this._cwd);

if (ctor) {
- res.constructor = true;
+ Object.defineProperty(res, 'constructor', { value: true });
}

if (evalOrigin) {

0 comments on commit 5e5ae42

Please sign in to comment.