Skip to content

Commit ce4cc31

Browse files
committed
Correct some intrinsic signatures
While this doesn't currently cause issues in the upcoming webidl refactor this is actually being asserted and causes verification issues if the types don't align! These are basically just mistakes from the original implementation of this module, but this doesn't actually fix a known bug today.
1 parent 535aa31 commit ce4cc31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/cli-support/src/intrinsic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ intrinsics! {
110110
#[signature = fn(ref_string()) -> Anyref]
111111
SymbolNamedNew,
112112
#[symbol = "__wbindgen_number_get"]
113-
#[signature = fn(ref_anyref(), F64) -> F64]
113+
#[signature = fn(ref_anyref(), I32) -> F64]
114114
NumberGet,
115115
#[symbol = "__wbindgen_string_get"]
116116
#[signature = fn(ref_anyref(), I32) -> I32]
117117
StringGet,
118118
#[symbol = "__wbindgen_boolean_get"]
119-
#[signature = fn(ref_anyref()) -> F64]
119+
#[signature = fn(ref_anyref()) -> I32]
120120
BooleanGet,
121121
#[symbol = "__wbindgen_throw"]
122122
#[signature = fn(ref_string()) -> Unit]
@@ -143,7 +143,7 @@ intrinsics! {
143143
#[signature = fn(ref_anyref()) -> String]
144144
JsonSerialize,
145145
#[symbol = "__wbindgen_anyref_heap_live_count"]
146-
#[signature = fn() -> F64]
146+
#[signature = fn() -> I32]
147147
AnyrefHeapLiveCount,
148148
#[symbol = "__wbindgen_init_nyref_table"]
149149
#[signature = fn() -> Unit]

0 commit comments

Comments
 (0)