Skip to content

Commit

Permalink
Update wasm sample to pass type checking.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 697857648
  • Loading branch information
gkdn authored and copybara-github committed Nov 19, 2024
1 parent a188959 commit e33f902
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ goog.module('entry');
const j2wasm = goog.require('app.j2wasm');

j2wasm.instantiateStreaming('app_dev.wasm').then((instance) => {
document.body.innerText = instance.exports.getHelloWorld();
document.body.innerText = instance.exports["getHelloWorld"]();
}, (err) => {
document.body.style.color = 'red';
document.body.innerText = `Failed to load wasm: ${err}`;
Expand Down

0 comments on commit e33f902

Please sign in to comment.