summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-05-01 09:52:14 -0700
committerGitHub <noreply@github.com>2024-05-01 09:52:14 -0700
commit58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36 (patch)
tree5a0278ceb050feee6e29f4d087d96b8457682c5f /src/wasm/wasm-binary.cpp
parent7d9e4a87ce4949dc552790329cfaf4dfec8b36a8 (diff)
downloadbinaryen-58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36.tar.gz
binaryen-58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36.tar.bz2
binaryen-58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36.zip
Respect the Web limitation on Table size (#6567)
Without this the fuzzer can error on differences in behavior between V8 and us. Also move the limitations constants to their own header.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r--src/wasm/wasm-binary.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index b655395bf..d7c052a9f 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -26,6 +26,7 @@
#include "support/string.h"
#include "wasm-binary.h"
#include "wasm-debug.h"
+#include "wasm-limits.h"
#include "wasm-stack.h"
#define DEBUG_TYPE "binary"