Skip to content

Commit 625d235

Browse files
Fix wasm
1 parent 8bdc766 commit 625d235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wasm/lib/src/wasm_builtins.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn format_print_args(vm: &VirtualMachine, args: PyFuncArgs) -> Result<String
2525
if !objtype::isinstance(obj, &vm.ctx.str_type()) {
2626
return Err(vm.new_type_error(format!(
2727
"sep must be None or a string, not {}",
28-
objtype::get_type_name(&obj.typ())
28+
obj.class().name
2929
)));
3030
}
3131
}
@@ -39,7 +39,7 @@ pub fn format_print_args(vm: &VirtualMachine, args: PyFuncArgs) -> Result<String
3939
if !objtype::isinstance(obj, &vm.ctx.str_type()) {
4040
return Err(vm.new_type_error(format!(
4141
"end must be None or a string, not {}",
42-
objtype::get_type_name(&obj.typ())
42+
obj.class().name
4343
)));
4444
}
4545
}

0 commit comments

Comments
 (0)