diff --git a/patches/stack-utils+2.0.5.patch b/patches/stack-utils+2.0.5.patch new file mode 100644 index 00000000000..16d5e98ad9d --- /dev/null +++ b/patches/stack-utils+2.0.5.patch @@ -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) {