Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index a15a33c60cb95efffb9c3858ff47ce63b2758ce7..d50f3e9c47891119026899087251a44d937d3b93 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -6792,8 +6792,9 @@ class SnapshotCreator { |
/** |
* Add a context to be included in the snapshot blob. |
+ * \returns the index of the context in the snapshot blob. |
*/ |
- void AddContext(Local<Context> context); |
+ size_t AddContext(Local<Context> context); |
/** |
* Created a snapshot data blob. |
@@ -7097,7 +7098,8 @@ class V8_EXPORT Context { |
static Local<Context> New( |
Isolate* isolate, ExtensionConfiguration* extensions = NULL, |
Local<ObjectTemplate> global_template = Local<ObjectTemplate>(), |
- Local<Value> global_object = Local<Value>()); |
+ Local<Value> global_object = Local<Value>(), |
+ size_t context_snapshot_index = 0); |
/** |
* Sets the security token for the context. To access an object in |