Skip to content

Commit aa85781

Browse files
authored
Fix import of WASM module (#23)
1 parent cacfe8c commit aa85781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h3>Output:</h3>
7575

7676
<script type="module">
7777
// Load the WASM lib
78-
import init, {decode as esp_exception_decode} from "./esp_exception_decoder_rs.js";
78+
import init, {decode as esp_stacktrace_decode} from "./esp_stacktrace_decoder_rs.js";
7979

8080
// Get some references to the DOM
8181
const file_selector = document.querySelector('#file-selector');
@@ -104,7 +104,7 @@ <h3>Output:</h3>
104104
reader.onload = (e) => {
105105
// Convert the file content to Uint8Array for the decode function (expecting &[u8] in Rust)
106106
const elf_bytes = new Uint8Array(e.target.result);
107-
const decoded_addresses = esp_exception_decode(elf_bytes, stacktrace.value);
107+
const decoded_addresses = esp_stacktrace_decode(elf_bytes, stacktrace.value);
108108
// Unhide and update the decoded text area with the result from decode call
109109
section_output.removeAttribute('hidden');
110110
decoded_list.textContent = '';

0 commit comments

Comments
 (0)