Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 1dad8c5d12f34c46b3abc89e7ba6ad0f92d29e42..7aa228f32a229eebb62f6aa05dae2946930fe5ae 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3046,6 +3046,15 @@ Maybe<bool> ValueSerializer::Delegate::WriteHostObject(Isolate* v8_isolate, |
return Nothing<bool>(); |
} |
+Maybe<uint32_t> ValueSerializer::Delegate::GetSharedArrayBufferId( |
+ Isolate* v8_isolate, Local<SharedArrayBuffer> shared_array_buffer) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
+ isolate->ScheduleThrow(*isolate->factory()->NewError( |
+ isolate->error_function(), i::MessageTemplate::kDataCloneError, |
+ Utils::OpenHandle(*shared_array_buffer))); |
+ return Nothing<uint32_t>(); |
+} |
+ |
void* ValueSerializer::Delegate::ReallocateBufferMemory(void* old_buffer, |
size_t size, |
size_t* actual_size) { |