mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-17 15:25:35 +00:00
Generate exact JS buffer types for exact IDL buffer arguments instead of widening them to BufferSource or ArrayBufferView. This fixes cases like TextEncoder.encodeInto(), whose IDL requires a Uint8Array destination. Previously the generated binding accepted any BufferSource, so DataView, other typed arrays, and ArrayBuffer-backed values were let through. With exact conversion, those are rejected at the binding layer as expected. |
||
|---|---|---|
| .. | ||
| TextDecoder.cpp | ||
| TextDecoder.h | ||
| TextDecoder.idl | ||
| TextEncoder.cpp | ||
| TextEncoder.h | ||
| TextEncoder.idl | ||
| TextEncoderCommon.cpp | ||
| TextEncoderCommon.h | ||
| TextEncoderCommon.idl | ||
| TextEncoderStream.cpp | ||
| TextEncoderStream.h | ||
| TextEncoderStream.idl | ||