Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! worker: keep allocators for transferred SAB instances alive lo…
…nger
  • Loading branch information
addaleax committed Sep 24, 2019
commit e762ec778bd6f9b0101696a8040953f17540fbf4
4 changes: 3 additions & 1 deletion src/sharedarraybuffer_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class SharedArrayBufferMetadata
// count is increased by 1.
v8::MaybeLocal<v8::SharedArrayBuffer> GetSharedArrayBuffer(
Environment* env, v8::Local<v8::Context> context);
std::shared_ptr<v8::ArrayBuffer::Allocator> allocator() { return allocator_; }
std::shared_ptr<v8::ArrayBuffer::Allocator> allocator() const {
return allocator_;
}

SharedArrayBufferMetadata(SharedArrayBufferMetadata&& other) = delete;
SharedArrayBufferMetadata& operator=(
Expand Down