mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02: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:
committed by
Jelle Raaijmakers
parent
cf61171864
commit
70db474cf0
Notes:
github-actions[bot]
2025-08-14 08:28:16 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/70db474cf07 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5845 Reviewed-by: https://github.com/gmta ✅
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user