Open Matthiee opened 5 months ago
Given the following JS Error
class MyCustomError extends Error { constructor(status, message) { super(message); this.status = status; } }
If this error is thrown from inside a QJS script, the status property will be lost.
status
try { qjs.evaluate('throw new MyCustomError(1234, "Oops");'); } catch (e) { // status property is lost print(e); }
Given the following JS Error
If this error is thrown from inside a QJS script, the
status
property will be lost.