IDLGenerators: Throw TypeError if IDL ByteString contains element > 255

This commit is contained in:
Tim Ledbetter 2024-11-21 16:58:44 +00:00 committed by Tim Flynn
parent 6dc61f895d
commit 19a5780f0c
Notes: github-actions[bot] 2024-11-21 20:51:11 +00:00
3 changed files with 41 additions and 7 deletions

View file

@ -23,6 +23,10 @@ ErrorOr<ByteBuffer> get_buffer_source_copy(JS::Object const& buffer_source);
JS::Completion call_user_object_operation(WebIDL::CallbackType& callback, String const& operation_name, Optional<JS::Value> this_argument, GC::MarkedVector<JS::Value> args);
JS::ThrowCompletionOr<String> to_string(JS::VM&, JS::Value);
JS::ThrowCompletionOr<String> to_usv_string(JS::VM&, JS::Value);
JS::ThrowCompletionOr<String> to_byte_string(JS::VM&, JS::Value);
// https://webidl.spec.whatwg.org/#call-a-user-objects-operation
template<typename... Args>
JS::Completion call_user_object_operation(WebIDL::CallbackType& callback, String const& operation_name, Optional<JS::Value> this_argument, Args&&... args)