Closed kzvi closed 5 years ago
If you add a breakpoing before the __wbg_error_29632ca09755cc79_target
call, is varg0
the exepcted error message string?
This is super funky behavior...
Unfortunately, I don't have an OSX machine on hand at the moment.
If I inspect varg0
using the console:
It looks like this is a bug in Safari's developer console.
We can work around it by appending a space to the error message, I suppose...
Filed an upstream bug report to webkit's devtools: https://bugs.webkit.org/show_bug.cgi?id=189750
@kzvi, could you comment in the webkit bug with which safari version you are using? Alternatively, if you don't have an account for bugs.webkit.org and don't want one, you can leave a comment here and I can copy it over to the webkit bug. Thanks!
@fitzgen Version 11.1.2 (13605.3.8)
Still not working in Safari 12.0.3 (14606.4.5)
What I see in Firefox:
What I see in Safari:
Edit:
wasm-bindgen generates this code:
If this line:
is manually changed to this:
then it works. It seems that the string literal has to have a space in it, an empty string literal doesn't work.