summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm/wasm-binary.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index c1cb02375..2a7bff51f 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -1081,14 +1081,6 @@ void WasmBinaryBuilder::readFunctions() {
for (size_t t = 0; t < numLocalTypes; t++) {
auto num = getU32LEB();
auto type = getConcreteType();
- if (num > WebLimitations::MaxFunctionLocals) {
- // In general for Web limitations we try to just warn, but not actually
- // enforce the limit ourselves (as we may be looking at wasm not intended
- // to run on the Web). However, too many locals will simply cause us to
- // OOM, so some arbitrary limit makes sense - and if so, why not use
- // the arbitrary Web limit, for consistency.
- throwError("too many locals, wasm VMs would not accept this binary");
- }
while (num > 0) {
func->vars.push_back(type);
num--;