diff --git a/include/v8.h b/include/v8.h index 1ade3e3acd..e791d8dd1a 100644 --- a/include/v8.h +++ b/include/v8.h @@ -1656,7 +1656,9 @@ class V8_EXPORT ScriptCompiler { * ECMAScript specification. */ static V8_WARN_UNUSED_RESULT MaybeLocal CompileModule( - Isolate* isolate, Source* source); + Isolate* isolate, Source* source, + CompileOptions options = kNoCompileOptions, + NoCacheReason no_cache_reason = kNoCacheNoReason); /** * Compile a function for a given context. This is equivalent to running diff --git a/src/api.cc b/src/api.cc index c6bcc8165b..85b18f7a92 100644 --- a/src/api.cc +++ b/src/api.cc @@ -2475,15 +2475,18 @@ MaybeLocal