diff options
author | Jacob Gravelle <jgravelle@google.com> | 2018-10-25 09:54:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 09:54:57 -0700 |
commit | 235607de3d3b4a448f9661b431c0471f748c0c64 (patch) | |
tree | a5a29cafad9c0537231db16e7365abff140b1ae7 /src | |
parent | 9877514e369254c92f22264fadf043eae03b543c (diff) | |
download | binaryen-235607de3d3b4a448f9661b431c0471f748c0c64.tar.gz binaryen-235607de3d3b4a448f9661b431c0471f748c0c64.tar.bz2 binaryen-235607de3d3b4a448f9661b431c0471f748c0c64.zip |
Expand asmConsts metadata to fit the shape of proxying async EM_ASMs (no actual support) (#1711)
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 78d2d25c6..d7c323da9 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -702,6 +702,12 @@ std::string EmscriptenGlueGenerator::generateEmscriptenMetadata( meta << maybeComma(); meta << '"' << emAsmWalker.ids[code] << "\": [\"" << code << "\", "; printSet(meta, sigs); + meta << ", "; + + // TODO: proxying to main thread. Currently this is unsupported, so proxy + // mode is "none", represented by an empty string. + meta << "[\"\"]"; + meta << "]"; } meta << "},"; |