diff options
author | Alon Zakai <azakai@google.com> | 2023-02-23 10:58:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 10:58:59 -0800 |
commit | 549b0f45be3749fd5f612a2eb225ca1cc40081a6 (patch) | |
tree | 89803ede90ae3fbfde7cdf924aed3646cc28693b /src/tools/wasm-ctor-eval.cpp | |
parent | 5a0aef47cda663b312c34454857601ee78d77ab6 (diff) | |
download | binaryen-549b0f45be3749fd5f612a2eb225ca1cc40081a6.tar.gz binaryen-549b0f45be3749fd5f612a2eb225ca1cc40081a6.tar.bz2 binaryen-549b0f45be3749fd5f612a2eb225ca1cc40081a6.zip |
[wasm-ctor-eval] Stop evalling at table.set for now (#5516)
Until we get full support for serializing table changes, stop evalling so we do
not break things.
Diffstat (limited to 'src/tools/wasm-ctor-eval.cpp')
-rw-r--r-- | src/tools/wasm-ctor-eval.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/wasm-ctor-eval.cpp b/src/tools/wasm-ctor-eval.cpp index 561b08cfc..d41094c67 100644 --- a/src/tools/wasm-ctor-eval.cpp +++ b/src/tools/wasm-ctor-eval.cpp @@ -73,6 +73,13 @@ public: return ModuleRunnerBase<EvallingModuleRunner>::visitGlobalGet(curr); } + + Flow visitTableSet(TableSet* curr) { + // TODO: Full dynamic table support. For now we stop evalling when we see a + // table.set. (To support this we need to track sets and add code to + // serialize them.) + throw FailToEvalException("table.set: TODO"); + } }; // Build an artificial `env` module based on a module's imports, so that the |