mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 06:59:47 +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
|
@ -36,7 +36,7 @@ WebIDL::ExceptionOr<void> AudioBufferSourceNode::set_buffer(GC::Ptr<AudioBuffer>
|
|||
|
||||
// 2. If new buffer is not null and [[buffer set]] is true, throw an InvalidStateError and abort these steps.
|
||||
if (new_buffer && m_buffer_set)
|
||||
return WebIDL::InvalidStateError::create(realm(), "Buffer has already been set"_string);
|
||||
return WebIDL::InvalidStateError::create(realm(), "Buffer has already been set"_utf16);
|
||||
|
||||
// 3. If new buffer is not null, set [[buffer set]] to true.
|
||||
if (new_buffer)
|
||||
|
@ -112,7 +112,7 @@ WebIDL::ExceptionOr<void> AudioBufferSourceNode::start(Optional<double> when, Op
|
|||
{
|
||||
// 1. If this AudioBufferSourceNode internal slot [[source started]] is true, an InvalidStateError exception MUST be thrown.
|
||||
if (source_started())
|
||||
return WebIDL::InvalidStateError::create(realm(), "AudioBufferSourceNode has already been started"_string);
|
||||
return WebIDL::InvalidStateError::create(realm(), "AudioBufferSourceNode has already been 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue