-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure error is actually visible if wasm fails to load #147
Comments
Is that true with Firefox extensions? I know Firefox in general supports printing error objects without any problem (they're not cloned, they're just printed). |
At least in the context of loading an extension, the error is always |
That sounds to me like a bug of |
@koute Yeah, it's a bug with Firefox Extensions: using https://bugzilla.mozilla.org/show_bug.cgi?id=1327280 Technically it's an intentional feature omission (not a bug), but it sounds like they have plans to fix it regardless. |
We could have the shim try to avoid the situation, yet as far as I'm concerned this can be closed. |
@lukaslueg Personally, I think it's reasonable for the It would only affect the wasm loading logic, other errors might still show up as Do you want to make a PR for that, or should I? |
Probably a one-line change, yet I wont get around doing it :-)
Am Do., 6. Dez. 2018 um 12:01 Uhr schrieb Pauan <notifications@github.com>:
… @lukaslueg <https://github.com/lukaslueg> Personally, I think it's
reasonable for the web-extension runtime to use .toString(), since this
is an issue only with Firefox extensions. Other runtimes would be unchanged.
It would only affect the wasm loading logic
<https://github.com/koute/cargo-web/blob/6cb5ef63db4738c5800d733c3bdc901cabb437d2/src/wasm_runtime_web_extension.js#L21>,
other errors might still show up as <unavailable>. So the impact is
minimized.
Do you want to make a PR for that, or should I?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#147 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADALoEWUUVL4LXY1kmcPGIiGJdM2faN9ks5u2PkIgaJpZM4XyJRI>
.
|
Well, I'm fine with adding the |
This was fixed by #162 |
Published as 0.6.22 |
cargo-web/src/wasm_runtime_standalone.js
Line 46 in 8b9b5da
This should be
error.toString()
, not justerror
to ensure that the error message is actually printed. If the object can't be cloned, the message will be"<unavailable>"
, which is not helpful at all.The text was updated successfully, but these errors were encountered: