mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Use Value::to_byte_string() in fewer places
This commit is contained in:
Notes:
github-actions[bot]
2025-03-28 16:32:47 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/2462a6b0fa2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4142 Reviewed-by: https://github.com/trflynn89
@@ -36,7 +36,7 @@ void GlobalObject::visit_edges(Cell::Visitor& visitor)
|
||||
|
||||
JS_DEFINE_NATIVE_FUNCTION(GlobalObject::print)
|
||||
{
|
||||
auto string = TRY(vm.argument(0).to_byte_string(vm));
|
||||
auto string = TRY(vm.argument(0).to_string(vm));
|
||||
outln("{}", string);
|
||||
return js_undefined();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user