mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
LibJS+LibWeb: Port interned bytecode strings to UTF-16
This was almost a no-op, except we intern JS exception messages. So the bulk of this patch is porting exception messages to UTF-16.
This commit is contained in:
parent
cf61171864
commit
70db474cf0
Notes:
github-actions[bot]
2025-08-14 08:28:16 +00:00
Author: https://github.com/trflynn89
Commit: 70db474cf0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5845
Reviewed-by: https://github.com/gmta ✅
162 changed files with 1405 additions and 1422 deletions
|
@ -37,7 +37,7 @@ WebIDL::ExceptionOr<void> AudioScheduledSourceNode::start(double when)
|
|||
{
|
||||
// 1. If this AudioScheduledSourceNode internal slot [[source started]] is true, an InvalidStateError exception MUST be thrown.
|
||||
if (source_started())
|
||||
return WebIDL::InvalidStateError::create(realm(), "AudioScheduledSourceNode source has already started"_string);
|
||||
return WebIDL::InvalidStateError::create(realm(), "AudioScheduledSourceNode source has already started"_utf16);
|
||||
|
||||
// 2. Check for any errors that must be thrown due to parameter constraints described below. If any exception is thrown during this step, abort those steps.
|
||||
// A RangeError exception MUST be thrown if when is negative.
|
||||
|
@ -59,7 +59,7 @@ WebIDL::ExceptionOr<void> AudioScheduledSourceNode::stop(double when)
|
|||
{
|
||||
// 1. If this AudioScheduledSourceNode internal slot [[source started]] is not true, an InvalidStateError exception MUST be thrown.
|
||||
if (!m_source_started)
|
||||
return WebIDL::InvalidStateError::create(realm(), "AudioScheduledSourceNode source has not been started"_string);
|
||||
return WebIDL::InvalidStateError::create(realm(), "AudioScheduledSourceNode source has not been started"_utf16);
|
||||
|
||||
// 2. Check for any errors that must be thrown due to parameter constraints described below.
|
||||
// A RangeError exception MUST be thrown if when is negative.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue