-
Notifications
You must be signed in to change notification settings - Fork 51
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
Setting up WASM logging in diplomat-runtime
#346
Conversation
tool/src/js/wasm.mjs
Outdated
@@ -5,13 +5,22 @@ let wasm; | |||
|
|||
const imports = { | |||
env: { | |||
log_js(ptr, len) { | |||
console_debug_js(ptr, len) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit of a breaking change, no?
might be ok since we don't have users of the JS backend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends how diplomat-runtime is versioned wrt diplomat-tool. I'm changing both sides of the FFI here, so it should not be breaking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah the problem is someone using icu4x would get an automatic update of diplomat-runtime. This may be an acceptable thing to break for now since JS is still very iffy (cc @sffc?) and the logging isn't proprely hooked up.
Also can we scope it as diplomat_console_...
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is breaking, but releasing major diplomat versions is not a lot of work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather fix JS than go out of our way to make it backwards compatible with clients I don't think we have right now.
No description provided.