Index: src/api.h |
diff --git a/src/api.h b/src/api.h |
index 0cd16f1f01f4fcc60d9c3deb5c6ad34fe725a326..f62541dc032cfb4f0ce03659b1a231e199dd2874 100644 |
--- a/src/api.h |
+++ b/src/api.h |
@@ -170,6 +170,7 @@ class RegisteredExtension { |
V(RegExp, JSRegExp) \ |
V(Object, JSObject) \ |
V(Array, JSArray) \ |
+ V(ArrayBuffer, JSArrayBuffer) \ |
V(String, String) \ |
V(Symbol, Symbol) \ |
V(Script, Object) \ |
@@ -205,6 +206,8 @@ class Utils { |
v8::internal::Handle<v8::internal::JSObject> obj); |
static inline Local<Array> ToLocal( |
v8::internal::Handle<v8::internal::JSArray> obj); |
+ static inline Local<ArrayBuffer> ToLocal( |
+ v8::internal::Handle<v8::internal::JSArrayBuffer> obj); |
static inline Local<Message> MessageToLocal( |
v8::internal::Handle<v8::internal::Object> obj); |
static inline Local<StackTrace> StackTraceToLocal( |
@@ -275,6 +278,7 @@ MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) |
MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) |
MAKE_TO_LOCAL(ToLocal, JSObject, Object) |
MAKE_TO_LOCAL(ToLocal, JSArray, Array) |
+MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) |