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
Restart the WASM module when stopping/starting/panicking (#51)
Fixes panic HAL calls so the device is no longer operable afterwards.
- Use the same logic for a normal stop/start.
- Cache the WASM to avoid downloading and compiling it for each module
instantiation.
- Prefer using the _foo functions on the module vs cwrap.
- Incidental fix to the radio message handling in demo.html
Co-authored-by: Robert Knight <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,19 @@ The following sections documents the messages supported via postMessage.
151
151
<td>Radio output (sent from the user's program) as bytes.
152
152
If you send string data from the program then it will be prepended with the three bytes 0x01, 0x00, 0x01.
153
153
154
+
<tr>
155
+
<td>internal_error
156
+
<td>
157
+
158
+
```javascript
159
+
{
160
+
"kind":"internal_error",
161
+
"error":newError()
162
+
}
163
+
```
164
+
165
+
<td>A debug message sent for internal (unexpected) errors thrown by the simulator. Suitable for application-level logging. Please raise issues in this project as these indicate a bug in the simulator.
0 commit comments