mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS: Use Value::to_byte_string() in fewer places
This commit is contained in:
parent
c71772126f
commit
2462a6b0fa
Notes:
github-actions[bot]
2025-03-28 16:32:47 +00:00
Author: https://github.com/awesomekling
Commit: 2462a6b0fa
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4142
Reviewed-by: https://github.com/trflynn89
8 changed files with 28 additions and 29 deletions
|
@ -87,7 +87,7 @@ JS_DEFINE_NATIVE_FUNCTION($262Object::detach_array_buffer)
|
|||
|
||||
JS_DEFINE_NATIVE_FUNCTION($262Object::eval_script)
|
||||
{
|
||||
auto source_text = TRY(vm.argument(0).to_byte_string(vm));
|
||||
auto source_text = TRY(vm.argument(0).to_string(vm));
|
||||
|
||||
// 1. Let hostDefined be any host-defined values for the provided sourceText (obtained in an implementation dependent manner)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue