mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-26 00:59:28 -05:00
d718370a07
The pointer returned by `ArrayBuffer::data` might be null if the backing store has zero length, but the return type `*mut c_void` does not force the user to consider this case. This change makes the return type `Option<NonNull<c_void>>`, which is semantically equivalent, but which forces users of the API to handle the `None` case. This PR is the `ArrayBuffer` counterpart to #817. This is a breaking API change. |
||
---|---|---|
.. | ||
compile_fail | ||
slots.rs | ||
test_api.rs | ||
test_api_entropy_source.rs | ||
test_api_flags.rs | ||
test_concurrent_isolate_creation_and_disposal.rs | ||
test_platform_atomics_pump_message_loop.rs | ||
test_single_threaded_default_platform.rs | ||
test_ui.rs |