From cffbc4bc36f5e5f53e34f16ba4e687fdf130131d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 28 Jul 2016 14:16:19 -0700 Subject: wast function type name desugaring is changing in spec:301 (#654) --- src/wasm.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index 5c1baaf09..38a030e1a 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1065,8 +1065,7 @@ public: FunctionType() : result(none) {} - bool operator==(FunctionType& b) { - if (name != b.name) return false; // XXX + bool structuralComparison(FunctionType& b) { if (result != b.result) return false; if (params.size() != b.params.size()) return false; for (size_t i = 0; i < params.size(); i++) { @@ -1074,6 +1073,11 @@ public: } return true; } + + bool operator==(FunctionType& b) { + if (name != b.name) return false; + return structuralComparison(b); + } bool operator!=(FunctionType& b) { return !(*this == b); } -- cgit v1.2.3