diff --git a/third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h b/third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h index a6b8547f5..5fa03cb35 100644 --- a/third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h +++ b/third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h @@ -36,7 +36,7 @@ class NotShared { template ::value, int> = 0> NotShared(const NotShared& other) : typed_array_(other.Get()) {} - explicit NotShared(nullptr_t) {} + explicit NotShared(std::nullptr_t) {} explicit NotShared(T* typed_array) : typed_array_(typed_array) { DCHECK(!typed_array || !typed_array->IsShared()); } @@ -95,7 +95,7 @@ class MaybeShared { template ::value, int> = 0> MaybeShared(const MaybeShared& other) : typed_array_(other.Get()) {} - explicit MaybeShared(nullptr_t) {} + explicit MaybeShared(std::nullptr_t) {} // [AllowShared] array buffer view may be a view of non-shared array buffer, // so we don't check if the buffer is SharedArrayBuffer or not. // https://heycam.github.io/webidl/#AllowShared