mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 17:33:04 +00:00
LibJS: Use FlyString in PropertyKey instead of DeprecatedFlyString
This required dealing with *substantial* fallout.
This commit is contained in:
parent
fc744e3f3f
commit
46a5710238
Notes:
github-actions[bot]
2025-03-24 22:28:26 +00:00
Author: https://github.com/awesomekling
Commit: 46a5710238
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4067
Reviewed-by: https://github.com/trflynn89
110 changed files with 985 additions and 987 deletions
|
@ -84,7 +84,7 @@ void Error::populate_stack()
|
|||
for (auto& element : stack_trace) {
|
||||
auto* context = element.execution_context;
|
||||
TracebackFrame frame {
|
||||
.function_name = context->function_name ? context->function_name->byte_string() : "",
|
||||
.function_name = context->function_name ? context->function_name->utf8_string() : ""_string,
|
||||
.cached_source_range = element.source_range,
|
||||
};
|
||||
|
||||
|
@ -111,7 +111,7 @@ String Error::stack_string(CompactTraceback compact) const
|
|||
else
|
||||
stack_string_builder.appendff(" at {} ({}:{}:{})\n", function_name, source_range.filename(), source_range.start.line, source_range.start.column);
|
||||
} else {
|
||||
stack_string_builder.appendff(" at {}\n", function_name.is_empty() ? "<unknown>"sv : function_name.view());
|
||||
stack_string_builder.appendff(" at {}\n", function_name.is_empty() ? "<unknown>"sv : function_name);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue