mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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
|
@ -55,7 +55,7 @@ ThrowCompletionOr<GC::Ref<Object>> AggregateErrorConstructor::construct(Function
|
|||
// 3. If message is not undefined, then
|
||||
if (!message.is_undefined()) {
|
||||
// a. Let msg be ? ToString(message).
|
||||
auto msg = TRY(message.to_byte_string(vm));
|
||||
auto msg = TRY(message.to_string(vm));
|
||||
|
||||
// b. Perform CreateNonEnumerableDataPropertyOrThrow(O, "message", msg).
|
||||
aggregate_error->create_non_enumerable_data_property_or_throw(vm.names.message, PrimitiveString::create(vm, msg));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue