| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 6eb184cc46ba18e7162ed03823cfe02ae2926ef0..04ba55c1ddecd7c30a927c80ba098e1449419ab0 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -8601,6 +8601,16 @@ void Isolate::SetAllowCodeGenerationFromStringsCallback(
|
| isolate->set_allow_code_gen_callback(callback);
|
| }
|
|
|
| +void Isolate::SetAllowWasmCompileCallback(AllowWasmCompileCallback callback) {
|
| + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
|
| + isolate->set_allow_wasm_compile_callback(callback);
|
| +}
|
| +
|
| +void Isolate::SetAllowWasmInstantiateCallback(
|
| + AllowWasmInstantiateCallback callback) {
|
| + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
|
| + isolate->set_allow_wasm_instantiate_callback(callback);
|
| +}
|
|
|
| bool Isolate::IsDead() {
|
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
|
|
|