@@ -43,118 +43,34 @@ namespace Wundle {
4343
4444
4545
46- const ClassInfo DefaultGlobal::s_info = { " GlobalObject" , &Base::s_info, nullptr , nullptr , CREATE_METHOD_TABLE (DefaultGlobal) };
47- const GlobalObjectMethodTable DefaultGlobal::s_globalObjectMethodTable = {
48- &supportsRichSourceInfo,
49- &shouldInterruptScript,
50- &javaScriptRuntimeFlags,
51- nullptr , // queueTaskToEventLoop
52- &shouldInterruptScriptBeforeTimeout,
53- &moduleLoaderImportModule, // moduleLoaderImportModule
54- &moduleLoaderResolve, // moduleLoaderResolve
55- &moduleLoaderFetch, // moduleLoaderFetch
56- &moduleLoaderCreateImportMetaProperties, // moduleLoaderCreateImportMetaProperties
57- &moduleLoaderEvaluate, // moduleLoaderEvaluate
58- nullptr , // promiseRejectionTracker
59- &reportUncaughtExceptionAtEventLoop,
60- ¤tScriptExecutionOwner,
61- &scriptExecutionStatus,
62- nullptr , // defaultLanguage
63- nullptr , // compileStreaming
64- nullptr , // instantiateStreaming
46+ // const ClassInfo DefaultGlobal::s_info = { "GlobalObject", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(DefaultGlobal) };
47+ // const GlobalObjectMethodTable DefaultGlobal::s_globalObjectMethodTable = {
48+ // &supportsRichSourceInfo,
49+ // &shouldInterruptScript,
50+ // &javaScriptRuntimeFlags,
51+ // nullptr, // queueTaskToEventLoop
52+ // &shouldInterruptScriptBeforeTimeout,
53+ // &moduleLoaderImportModule, // moduleLoaderImportModule
54+ // &moduleLoaderResolve, // moduleLoaderResolve
55+ // &moduleLoaderFetch, // moduleLoaderFetch
56+ // &moduleLoaderCreateImportMetaProperties, // moduleLoaderCreateImportMetaProperties
57+ // &moduleLoaderEvaluate, // moduleLoaderEvaluate
58+ // nullptr, // promiseRejectionTracker
59+ // &reportUncaughtExceptionAtEventLoop,
60+ // ¤tScriptExecutionOwner,
61+ // &scriptExecutionStatus,
62+ // nullptr, // defaultLanguage
63+ // nullptr, // compileStreaming
64+ // nullptr, // instantiateStreaming
65+ // };
66+
67+
68+ // void DefaultGlobal::reportUncaughtExceptionAtEventLoop(JSGlobalObject* globalObject, Exception* exception) {}
69+ // JSC::Identifier DefaultGlobal::moduleLoaderResolve(JSGlobalObject* globalObject, JSModuleLoader* loader, JSValue key, JSValue referrer, JSValue val) {
70+ // JSInternalPromise* DefaultGlobal::moduleLoaderImportModule(JSGlobalObject* globalObject, JSModuleLoader*, JSString* specifierValue, JSValue, const SourceOrigin& sourceOrigin) {
71+ // JSInternalPromise* DefaultGlobal::moduleLoaderFetch(JSGlobalObject* globalObject, JSModuleLoader*, JSValue key, JSValue, JSValue) {
72+ // JSC::JSObject* DefaultGlobal::moduleLoaderCreateImportMetaProperties(JSGlobalObject* globalObject, JSModuleLoader*loader, JSValue key, JSModuleRecord* record, JSValue value) {
73+ // JSValue DefaultGlobal::moduleLoaderEvaluate(JSGlobalObject* globalObject, JSModuleLoader* moduleLoader, JSValue key, JSValue moduleRecordValue, JSValue scriptFetcher, JSValue sentValue, JSValue resumeMode) {
74+
75+ // using namespace JSC;
6576};
66-
67-
68- void DefaultGlobal::reportUncaughtExceptionAtEventLoop (JSGlobalObject* globalObject, Exception* exception) {}
69- JSC ::Identifier DefaultGlobal::moduleLoaderResolve (JSGlobalObject* globalObject, JSModuleLoader* loader, JSValue key, JSValue referrer, JSValue val) {
70- String string = key.toWTFString (globalObject);
71- return JSC::Identifier::fromString (globalObject->vm (), string );
72- }
73- JSInternalPromise* DefaultGlobal::moduleLoaderImportModule (JSGlobalObject* globalObject, JSModuleLoader*, JSString* specifierValue, JSValue, const SourceOrigin& sourceOrigin) {
74- return nullptr ;
75- }
76- JSInternalPromise* DefaultGlobal::moduleLoaderFetch (JSGlobalObject* globalObject, JSModuleLoader*, JSValue key, JSValue, JSValue) {
77- return nullptr ;
78- }
79- JSC ::JSObject* DefaultGlobal::moduleLoaderCreateImportMetaProperties (JSGlobalObject* globalObject, JSModuleLoader*loader, JSValue key, JSModuleRecord* record, JSValue value) {
80- return nullptr ;
81- }
82- JSValue DefaultGlobal::moduleLoaderEvaluate (JSGlobalObject* globalObject, JSModuleLoader* moduleLoader, JSValue key, JSValue moduleRecordValue, JSValue scriptFetcher, JSValue sentValue, JSValue resumeMode) {
83- return jsNull ();
84- }
85-
86- using namespace JSC ;
87-
88-
89- JSC ::ObjectPrototype* JSC__JSGlobalObject__objectPrototype (JSC ::JSGlobalObject* arg0) {
90- return arg0->objectPrototype ();
91- }
92- JSC ::FunctionPrototype* JSC__JSGlobalObject__functionPrototype (JSC ::JSGlobalObject* arg0) {
93- return arg0->functionPrototype ();
94- }
95- JSC ::ArrayPrototype* JSC__JSGlobalObject__arrayPrototype (JSC ::JSGlobalObject* arg0) {
96- return arg0->arrayPrototype ();
97- }
98- JSC ::JSObject* JSC__JSGlobalObject__booleanPrototype (JSC ::JSGlobalObject* arg0) {
99- return arg0->booleanPrototype ();
100- }
101- JSC ::StringPrototype* JSC__JSGlobalObject__stringPrototype (JSC ::JSGlobalObject* arg0) {
102- return arg0->stringPrototype ();
103- }
104- JSC ::JSObject* JSC__JSGlobalObject__numberPrototype (JSC ::JSGlobalObject* arg0) {
105- return arg0->numberPrototype ();
106- }
107- JSC ::BigIntPrototype* JSC__JSGlobalObject__bigIntPrototype (JSC ::JSGlobalObject* arg0) {
108- return arg0->bigIntPrototype ();
109- }
110- JSC ::JSObject* JSC__JSGlobalObject__datePrototype (JSC ::JSGlobalObject* arg0) {
111- return arg0->datePrototype ();
112- }
113- JSC ::JSObject* JSC__JSGlobalObject__symbolPrototype (JSC ::JSGlobalObject* arg0) {
114- return arg0->symbolPrototype ();
115- }
116- JSC ::RegExpPrototype* JSC__JSGlobalObject__regExpPrototype (JSC ::JSGlobalObject* arg0) {
117- return arg0->regExpPrototype ();
118- }
119- JSC ::JSObject* JSC__JSGlobalObject__errorPrototype (JSC ::JSGlobalObject* arg0) {
120- return arg0->errorPrototype ();
121- }
122- JSC ::IteratorPrototype* JSC__JSGlobalObject__iteratorPrototype (JSC ::JSGlobalObject* arg0) {
123- return arg0->iteratorPrototype ();
124- }
125- JSC ::AsyncIteratorPrototype* JSC__JSGlobalObject__asyncIteratorPrototype (JSC ::JSGlobalObject* arg0) {
126- return arg0->asyncIteratorPrototype ();
127- }
128- JSC ::GeneratorFunctionPrototype* JSC__JSGlobalObject__generatorFunctionPrototype (JSC ::JSGlobalObject* arg0) {
129- return arg0->generatorFunctionPrototype ();
130- }
131- JSC ::GeneratorPrototype* JSC__JSGlobalObject__generatorPrototype (JSC ::JSGlobalObject* arg0) {
132- return arg0->generatorPrototype ();
133- }
134- JSC ::AsyncFunctionPrototype* JSC__JSGlobalObject__asyncFunctionPrototype (JSC ::JSGlobalObject* arg0) {
135- return arg0->asyncFunctionPrototype ();
136- }
137- JSC ::ArrayIteratorPrototype* JSC__JSGlobalObject__arrayIteratorPrototype (JSC ::JSGlobalObject* arg0) {
138- return arg0->arrayIteratorPrototype ();
139- }
140- JSC ::MapIteratorPrototype* JSC__JSGlobalObject__mapIteratorPrototype (JSC ::JSGlobalObject* arg0) {
141- return arg0->mapIteratorPrototype ();
142- }
143- JSC ::SetIteratorPrototype* JSC__JSGlobalObject__setIteratorPrototype (JSC ::JSGlobalObject* arg0) {
144- return arg0->setIteratorPrototype ();
145- }
146- JSC ::JSObject* JSC__JSGlobalObject__mapPrototype (JSC ::JSGlobalObject* arg0) {
147- return arg0->mapPrototype ();
148- }
149- JSC ::JSObject* JSC__JSGlobalObject__jsSetPrototype (JSC ::JSGlobalObject* arg0) {
150- return arg0->jsSetPrototype ();
151- }
152- JSC ::JSPromisePrototype* JSC__JSGlobalObject__promisePrototype (JSC ::JSGlobalObject* arg0) {
153- return arg0->promisePrototype ();
154- }
155- JSC ::AsyncGeneratorPrototype* JSC__JSGlobalObject__asyncGeneratorPrototype (JSC ::JSGlobalObject* arg0) {
156- return arg0->asyncGeneratorPrototype ();
157- }
158- JSC ::AsyncGeneratorFunctionPrototype* JSC__JSGlobalObject__asyncGeneratorFunctionPrototype (JSC ::JSGlobalObject* arg0) {
159- return arg0->asyncGeneratorFunctionPrototype ();
160- }
0 commit comments