Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 28d8764078198fd3c06608bda800538617938305..b9d44d7df8b49053c4856ecfe913b1b9021eaa7b 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1800,6 +1800,15 @@ class V8_EXPORT ValueSerializer { |
Local<SharedArrayBuffer> shared_array_buffer)); |
/* |
+ * Indicate whether to treat ArrayBufferView objects as host objects, |
+ * i.e. pass them to Delegate::WriteHostObject. This should not be |
+ * called when no Delegate was passed. |
+ * |
+ * The default is not to treat ArrayBufferViews as host objects. |
+ */ |
+ void SetTreatArrayBufferViewsAsHostObjects(bool mode); |
+ |
+ /* |
* Write raw data in various common formats to the buffer. |
* Note that integer types are written in base-128 varint format, not with a |
* binary copy. For use during an override of Delegate::WriteHostObject. |