cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wuchangming <...@git.apache.org>
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:

    https://github.com/apache/cordova-weinre/pull/13#issuecomment-193593096
  
    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) {
            console.error(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.
    **utils.js**
    ```
    Line 176    func = callSite.getFunction(); // func = undefined
    ....
    Line 183    funcName = func.displayName || func.name || 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message