You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently stack traces for errors within the web worker are rooted in ./dist.
For example, if there is an unexpected error within MoneroWalletFull.sync(), the stack track looks like:
Error: My test error
at LibraryUtils.deserializeError (/Users/woodser/git/monero-ts/dist/src/main/ts/common/LibraryUtils.js:262:106)
at LibraryUtils.invokeWorker (/Users/woodser/git/monero-ts/dist/src/main/ts/common/LibraryUtils.js:251:26)
at async MoneroWalletFullProxy.invokeWorker (/Users/woodser/git/monero-ts/dist/src/main/ts/wallet/MoneroWalletKeys.js:476:12)
at async MoneroWalletFullProxy.sync (/Users/woodser/git/monero-ts/dist/src/main/ts/wallet/MoneroWalletFull.js:1978:24)
at async TestUtils.getWalletFull (/Users/woodser/git/monero-ts/dist/src/test/utils/TestUtils.js:238:5)
at async Context.<anonymous> (/Users/woodser/git/monero-ts/dist/src/test/TestSampleCode.js:32:20)
Worker error: Error: My test error
at MoneroWalletFull.sync (/Users/woodser/git/monero-ts/src/main/ts/wallet/MoneroWalletFull.ts:565:21)
at self.sync (/Users/woodser/git/monero-ts/src/main/ts/common/MoneroWebWorker.ts:614:11)
at self.onmessage (/Users/woodser/git/monero-ts/src/main/ts/common/MoneroWebWorker.ts:49:49)
1) "before all" hook for "Sample code demonstration"
The line numbers are correct but point to *.js files within monero-ts/dist.
That's because the web worker is compiled and always run from ./dist.
This issue requests fixing the stack traces (their source maps) to be rooted in monero-ts/src and with the correct *.ts extensions for worker errors.
The text was updated successfully, but these errors were encountered:
woodser
changed the title
Fix stack traces / source maps within worker to be rooted in ./src instead of ./dist
Fix stack traces within worker to be rooted in ./src instead of ./dist
Oct 3, 2023
woodser
changed the title
Fix stack traces within worker to be rooted in ./src instead of ./dist
Fix stack traces from worker to be rooted in ./src instead of ./dist
Oct 3, 2023
Currently stack traces for errors within the web worker are rooted in ./dist.
For example, if there is an unexpected error within MoneroWalletFull.sync(), the stack track looks like:
The line numbers are correct but point to *.js files within monero-ts/dist.
That's because the web worker is compiled and always run from ./dist.
This issue requests fixing the stack traces (their source maps) to be rooted in monero-ts/src and with the correct *.ts extensions for worker errors.
The text was updated successfully, but these errors were encountered: