@@ -16,6 +16,8 @@ typedef struct FunctionTemplate FunctionTemplate;
1616typedef struct Message Message ;
1717typedef struct Name Name ;
1818typedef struct Context Context ;
19+ typedef struct UnboundScript UnboundScript ;
20+ typedef struct Script Script ;
1921// Internally, all Value types have a base InternalAddress struct.
2022typedef uintptr_t InternalAddress ;
2123// Super type.
@@ -800,6 +802,13 @@ void v8__ScriptOrigin__CONSTRUCT2(
800802 const Data * host_defined_options
801803);
802804
805+ // Script
806+ Script * v8__Script__Compile (const Context * context , const String * src , const ScriptOrigin * origin );
807+ Value * v8__Script__Run (const Script * script , const Context * context );
808+
809+ // UnboundScript
810+ Script * v8__UnboundScript__BindToCurrentContext (const UnboundScript * unboundedScript );
811+
803812// ScriptCompiler
804813typedef struct ScriptCompilerSource {
805814 String * source_string ;
@@ -849,11 +858,16 @@ const Module* v8__ScriptCompiler__CompileModule(
849858 ScriptCompilerSource * source ,
850859 CompileOptions options ,
851860 NoCacheReason reason );
852-
853- // Script
854- typedef struct Script Script ;
855- Script * v8__Script__Compile (const Context * context , const String * src , const ScriptOrigin * origin );
856- Value * v8__Script__Run (const Script * script , const Context * context );
861+ const Script * v8__ScriptCompiler__Compile (
862+ const Context * context ,
863+ ScriptCompilerSource * source ,
864+ CompileOptions options ,
865+ NoCacheReason reason );
866+ const UnboundScript * v8__ScriptCompiler__CompileUnboundScript (
867+ Isolate * isolate ,
868+ ScriptCompilerSource * source ,
869+ CompileOptions options ,
870+ NoCacheReason reason );
857871
858872// Module
859873typedef enum ModuleStatus {
0 commit comments