@@ -15,11 +15,13 @@ typedef struct Module Module;
1515typedef struct FunctionTemplate FunctionTemplate ;
1616typedef struct Message Message ;
1717typedef struct Context Context ;
18+ typedef struct UnboundScript UnboundScript ;
19+ typedef struct Script Script ;
1820// Internally, all Value types have a base InternalAddress struct.
1921typedef uintptr_t InternalAddress ;
2022// Super type.
2123typedef Data Value ;
22- typedef Value Object ;
24+ typedef Value Object ;a
2325typedef Value String ;
2426typedef Value Function ;
2527typedef Value Number ;
@@ -978,6 +980,13 @@ typedef struct CompilationDetails {
978980
979981typedef bool (* CompileHintCallback )(int , void * );
980982
983+ // Script
984+ Script * v8__Script__Compile (const Context * context , const String * src , const ScriptOrigin * origin );
985+ Value * v8__Script__Run (const Script * script , const Context * context );
986+
987+ // UnboundScript
988+ Script * v8__UnboundScript__BindToCurrentContext (const UnboundScript * unboundedScript );
989+
981990// ScriptCompiler
982991typedef struct ScriptCompilerSource {
983992 String * source_string ;
@@ -1032,11 +1041,16 @@ const Module* v8__ScriptCompiler__CompileModule(
10321041 ScriptCompilerSource * source ,
10331042 CompileOptions options ,
10341043 NoCacheReason reason );
1035-
1036- // Script
1037- typedef struct Script Script ;
1038- Script * v8__Script__Compile (const Context * context , const String * src , const ScriptOrigin * origin );
1039- Value * v8__Script__Run (const Script * script , const Context * context );
1044+ const Script * v8__ScriptCompiler__Compile (
1045+ const Context * context ,
1046+ ScriptCompilerSource * source ,
1047+ CompileOptions options ,
1048+ NoCacheReason reason );
1049+ const UnboundScript * v8__ScriptCompiler__CompileUnboundScript (
1050+ Isolate * isolate ,
1051+ ScriptCompilerSource * source ,
1052+ CompileOptions options ,
1053+ NoCacheReason reason );
10401054
10411055// Module
10421056typedef enum ModuleStatus {
0 commit comments