Skip to content

Commit f612d9a

Browse files
thibaudmichaudV8 LUCI CQ
authored andcommitted
[wasm] Check strict type equality for Tag imports
[email protected] Fixed: 365802567 Change-Id: I38d70f157f9a78fe56eb0c377776dfe794872473 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5868875 Commit-Queue: Thibaud Michaud <[email protected]> Reviewed-by: Manos Koukoutos <[email protected]> Cr-Commit-Position: refs/heads/main@{#96143}
1 parent b93d4a9 commit f612d9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wasm/wasm-objects.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,8 +2117,8 @@ Handle<WasmTagObject> WasmTagObject::New(
21172117
}
21182118

21192119
bool WasmTagObject::MatchesSignature(uint32_t expected_canonical_type_index) {
2120-
return wasm::GetWasmEngine()->type_canonicalizer()->IsCanonicalSubtype(
2121-
this->canonical_type_index(), expected_canonical_type_index);
2120+
return static_cast<uint32_t>(this->canonical_type_index()) ==
2121+
expected_canonical_type_index;
21222122
}
21232123

21242124
const wasm::FunctionSig* WasmCapiFunction::GetSignature(Zone* zone) const {

0 commit comments

Comments
 (0)