diff --git a/src/Utilities.h b/src/Utilities.h index eb2037d..e3edd78 100644 --- a/src/Utilities.h +++ b/src/Utilities.h @@ -111,6 +111,11 @@ public: ArrayBuffer::Contents contents = arrayBuffer->GetContents(); length = contents.ByteLength(); data = (char *) contents.Data(); + } else if (value->IsSharedArrayBuffer()) { + Local arrayBuffer = Local::Cast(value); + SharedArrayBuffer::Contents contents = arrayBuffer->GetContents(); + length = contents.ByteLength(); + data = (char *) contents.Data(); } else { invalid = true; }