| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 9b0688c1fcce054d3e825ef9899f0cacfa216448..bcaf954df39f3f7548b6df2126e04e6a540bdf05 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -1308,6 +1308,24 @@ class V8_EXPORT ScriptCompiler {
|
| * compared when it is being used.
|
| */
|
| static uint32_t CachedDataVersionTag();
|
| +
|
| + /**
|
| + * Compile an ES6 module.
|
| + *
|
| + * This is an experimental feature.
|
| + *
|
| + * TODO(adamk): Script is likely the wrong return value for this;
|
| + * should return some new Module type.
|
| + */
|
| + static Local<Script> CompileModule(
|
| + Isolate* isolate, Source* source,
|
| + CompileOptions options = kNoCompileOptions);
|
| +
|
| + private:
|
| + static Local<UnboundScript> CompileUnboundInternal(Isolate* isolate,
|
| + Source* source,
|
| + CompileOptions options,
|
| + bool is_module);
|
| };
|
|
|
|
|
|
|