Github user wuchangming commented on the pull request:
https://github.com/apache/cordova-weinre/pull/13#issuecomment-193567171
@pmuellr , It's because `Error.prepareStackTrace` is global scope.
when I integrate `weinre` in my project, some awful happens in my OWN
program and cause a
connect error:
```
"Error: connect ECONNREFUSED 127.0.0.1:80
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)"
```
then the code `Error.prepareStackTrace` will called.
**utils.js**
```
Line 176 func = callSite.getFunction(); // func = undefined
```
It's not fair to blame this bug to `weinre`, but It's effect my program
indeed.
Any good advice?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]