Skip to content

Commit

Permalink
Adding ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Oct 20, 2018
1 parent f6af028 commit 6e1e4aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/codecs/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export function initWasmModule<T extends EmscriptenWasm.Module>(
onRuntimeInitialized() {
// An Emscripten is a then-able that resolves with itself, causing an infite loop when you
// wrap it in a real promise. Delete the `then` prop solves this for now.
// See: https://github.com/kripken/emscripten/blob/incoming/src/postamble.js#L129
// TODO(surma@): File a bug with Emscripten on this.
// https://github.com/kripken/emscripten/issues/5820
delete (module as any).then;
resolve(module);
},
Expand Down

0 comments on commit 6e1e4aa

Please sign in to comment.