Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 66bd22053649b689e0d8f8333bb9b060bcb55a38..3af8bc68e216c2fa1eeca0c4a4311c4010249f03 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -6008,6 +6008,8 @@ typedef bool (*AllowWasmInstantiateCallback)(Isolate* isolate, |
MaybeLocal<Value> ffi, |
bool as_promise); |
+typedef bool (*ExtensionCallback)(const FunctionCallbackInfo<Value>&); |
bradnelson
2017/03/24 17:45:24
This is pretty generic name, is the idea we'd even
Mircea Trofin
2017/03/24 17:57:55
The hope is we'd delete this in favor of a "Extras
|
+ |
// --- Garbage Collection Callbacks --- |
/** |
@@ -7251,6 +7253,11 @@ class V8_EXPORT Isolate { |
void SetAllowWasmCompileCallback(AllowWasmCompileCallback callback); |
void SetAllowWasmInstantiateCallback(AllowWasmInstantiateCallback callback); |
+ void SetWasmModuleCallback(ExtensionCallback callback); |
+ void SetWasmCompileCallback(ExtensionCallback callback); |
+ void SetWasmInstanceCallback(ExtensionCallback callback); |
+ void SetWasmInstantiateCallback(ExtensionCallback callback); |
+ |
/** |
* Check if V8 is dead and therefore unusable. This is the case after |
* fatal errors such as out-of-memory situations. |