| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| index b76c2ebad454aa9c00856457170f0ae306f11360..cbcf0f081db0e86c2e0fb472930ae46f46c68ece 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| @@ -45,7 +45,9 @@ void BluetoothGATTCharacteristic::dispatchCharacteristicValueChanged(
|
| {
|
| static_assert(sizeof(*value.data()) == 1, "uint8_t should be a single byte");
|
|
|
| - m_value = DOMArrayBuffer::create(value.data(), value.size());
|
| + // FIXME: Should use createOrNull. Requires figuring out a graceful way
|
| + // to handle allocation failures.
|
| + m_value = DOMArrayBuffer::deprecatedCreateOrCrash(value.data(), value.size());
|
|
|
| dispatchEvent(Event::create(EventTypeNames::characteristicvaluechanged));
|
| }
|
|
|