summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-06-14 11:32:10 -0700
committerGitHub <noreply@github.com>2016-06-14 11:32:10 -0700
commit8f524e8f926b6993878f02334e730fe5f65096f6 (patch)
tree47c8121c1b9f2b90d42b673b2f14798a7b8681e8 /src/wasm-binary.h
parent24fa19071d309c59eee5c2bd966139eaab45b5ba (diff)
downloadbinaryen-8f524e8f926b6993878f02334e730fe5f65096f6.tar.gz
binaryen-8f524e8f926b6993878f02334e730fe5f65096f6.tar.bz2
binaryen-8f524e8f926b6993878f02334e730fe5f65096f6.zip
Add mode to wasm validator to check for web-environment constraints (#584)
In the web embedding, modules are not allowed to import or export functions which have i64 params or return values. Add a mode to the validator to check for this, and add flags to s2wasm and wasm-as to enable or disable this check. Also add tests.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index aa3295636..5cb56f770 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -1243,10 +1243,6 @@ public:
}
processFunctions();
-
- if (!WasmValidator().validate(wasm)) {
- abort();
- }
}
bool more() {