cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wuchangming <>
Subject [GitHub] cordova-weinre pull request: `func` sometimes is undefined
Date Tue, 08 Mar 2016 03:55:41 GMT
Github user wuchangming commented on the pull request:
    I fixed this issue with trick in my program:
    const weinre = require('weinre');
    var temPrepareStackTrace = Error.prepareStackTrace;
    Error.prepareStackTrace = (error, structuredStackTrace) => {
        try {
            temPrepareStackTrace(error, structuredStackTrace);
        } catch (e) {
    Actually, I really need `weinre`, I'm trying to build an easy tool (a proxy) for page
debug in any scene ,Browser or Webview without extra configure.
    LOL, I just mean `callSite.getFunction()` sometimes will get an `undefined`, such as the
Socket CONNECT Error I met.
    Line 176    func = callSite.getFunction(); // func = undefined
    Line 183    funcName = func.displayName || || callSite.getFunctionName();  //
 so an error occur here

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message