-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[wasm-ep] diagnostic server IPC fixups #72859
Conversation
The protocol spec says there's a length and a nul terminator, but sending that literal UTF-16 nul to ep_enable_2 means we use an incorrect name when looking for the provider.
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsThe protocol spec says there's a length and a nul terminator, but sending that literal UTF-16 nul to
|
convert the 64-bit "keywords" mask into a hex string properly by padding both halves with zeroes after calling the JS Number.toString() method
const provisionalString = String.fromCharCode.apply(null, result); | ||
|
||
if (trailingNulStart >= 0) | ||
return provisionalString.substring(0, trailingNulStart); |
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.
Why substring the string instead of slicing the array?
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.
Changed it to use Array.splice instead. Thanks!
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -14,7 +14,7 @@ | |||
</PropertyGroup> | |||
|
|||
<PropertyGroup> | |||
<MonoDiagnosticsMock Condition="'$(MonoDiagnosticsMock)' == ''">false</MonoDiagnosticsMock> | |||
<MonoDiagnosticsMock Condition="'$(MonoDiagnosticsMock)' == '' and '$(Configuration)' == 'Debug' ">true</MonoDiagnosticsMock> |
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.
Wrap the two comparisons in parens please
|
||
/* Trim trailing nul character(s) that are added by the protocol */ | ||
let trailingNulStart = -1; | ||
if (result.length > 0) { |
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 don't think this if
is necessary since the loop termination condition will bail out
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
ep_enable_2
means we use an incorrect name when looking for the provider.