Index: src/api.h |
diff --git a/src/api.h b/src/api.h |
index 38bb9200364a88061fd77bf22e274b2227cef506..886b903d35820e968b00430fc264ef2c4d110bdc 100644 |
--- a/src/api.h |
+++ b/src/api.h |
@@ -159,6 +159,7 @@ class RegisteredExtension { |
V(Float32Array, JSTypedArray) \ |
V(Float64Array, JSTypedArray) \ |
V(DataView, JSDataView) \ |
+ V(SharedArrayBuffer, JSArrayBuffer) \ |
V(Name, Name) \ |
V(String, String) \ |
V(Symbol, Symbol) \ |
@@ -230,6 +231,9 @@ class Utils { |
static inline Local<Float64Array> ToLocalFloat64Array( |
v8::internal::Handle<v8::internal::JSTypedArray> obj); |
+ static inline Local<SharedArrayBuffer> ToLocalShared( |
+ v8::internal::Handle<v8::internal::JSArrayBuffer> obj); |
+ |
static inline Local<Message> MessageToLocal( |
v8::internal::Handle<v8::internal::Object> obj); |
static inline Local<Promise> PromiseToLocal( |
@@ -360,6 +364,7 @@ MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) |
MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) |
MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) |
+MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) |
TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) |