paho.mqtt.javascript
paho.mqtt.javascript copied to clipboard
Error Stack fix
When testing for stack on errors, the statements were reversed. For instance, if user code throws an exception, it states "No Error Stack Available" on the error making it quite difficult to debug. Furthermore, if client browser's Errors would not have the stack field, the fixed statements would throw an exception.