| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index e6c14d5a903eafaf2e9f29463e3a24651ea13d45..e11597a3f18a869b6c3b54680add486279f997f8 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -1671,7 +1671,20 @@ class V8_EXPORT JSON {
|
| */
|
| class V8_EXPORT ValueSerializer {
|
| public:
|
| + class V8_EXPORT Delegate {
|
| + public:
|
| + virtual ~Delegate() {}
|
| +
|
| + /*
|
| + * Handles the case where a DataCloneError would be thrown in the structured
|
| + * clone spec. Other V8 embedders may throw some other appropriate exception
|
| + * type.
|
| + */
|
| + virtual void ThrowDataCloneError(Local<String> message) = 0;
|
| + };
|
| +
|
| explicit ValueSerializer(Isolate* isolate);
|
| + ValueSerializer(Isolate* isolate, Delegate* delegate);
|
| ~ValueSerializer();
|
|
|
| /*
|
|
|