| Index: Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| diff --git a/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp b/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| index 12d2fca01f5f7653c05b184cf53a9bd4c9797988..2a503516996add77e65c2220b64024bca39220e1 100644
|
| --- a/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| +++ b/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp
|
| @@ -34,7 +34,7 @@ ScriptPromise BluetoothGATTCharacteristic::readValue(ScriptState* scriptState)
|
| {
|
| WebBluetooth* webbluetooth = Platform::current()->bluetooth();
|
|
|
| - RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
|
| + ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
|
| ScriptPromise promise = resolver->promise();
|
| webbluetooth->readValue(m_webCharacteristic->characteristicInstanceID, new CallbackPromiseAdapter<ConvertWebVectorToArrayBuffer, BluetoothError>(resolver));
|
|
|
| @@ -55,7 +55,7 @@ ScriptPromise BluetoothGATTCharacteristic::writeValue(ScriptState* scriptState,
|
| if (valueVector.size() > 512)
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(InvalidModificationError, "Value can't exceed 512 bytes."));
|
|
|
| - RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
|
| + ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
|
|
|
| ScriptPromise promise = resolver->promise();
|
| webbluetooth->writeValue(m_webCharacteristic->characteristicInstanceID, valueVector, new CallbackPromiseAdapter<void, BluetoothError>(resolver));
|
|
|