1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#include "DefaultGlobal.h"
#include "root.h"
#include <wtf/text/AtomStringImpl.h>
#include <JavaScriptCore/APICast.h>
#include <JavaScriptCore/CallFrameInlines.h>
#include <JavaScriptCore/CatchScope.h>
#include <JavaScriptCore/Completion.h>
#include <JavaScriptCore/Error.h>
#include <JavaScriptCore/Exception.h>
#include <JavaScriptCore/JSContextInternal.h>
#include <JavaScriptCore/JSInternalPromise.h>
#include <JavaScriptCore/JSModuleLoader.h>
#include <JavaScriptCore/JSNativeStdFunction.h>
#include <JavaScriptCore/JSPromise.h>
#include <JavaScriptCore/JSSourceCode.h>
#include <JavaScriptCore/JSValueInternal.h>
#include <JavaScriptCore/JSVirtualMachineInternal.h>
#include <JavaScriptCore/JavaScriptCore.h>
#include <JavaScriptCore/ObjectConstructor.h>
#include <JavaScriptCore/SourceOrigin.h>
#include <wtf/URL.h>
#include "JSCInlines.h"
class Script;
namespace JSC {
class Identifier;
class JSObject;
class JSString;
} // namespace JSC
namespace Bun {
// const ClassInfo DefaultGlobal::s_info = { "GlobalObject", &Base::s_info, nullptr, nullptr,
// CREATE_METHOD_TABLE(DefaultGlobal) }; const GlobalObjectMethodTable
// DefaultGlobal::s_globalObjectMethodTable = {
// &supportsRichSourceInfo,
// &shouldInterruptScript,
// &javaScriptRuntimeFlags,
// nullptr, // queueTaskToEventLoop
// &shouldInterruptScriptBeforeTimeout,
// &moduleLoaderImportModule, // moduleLoaderImportModule
// &moduleLoaderResolve, // moduleLoaderResolve
// &moduleLoaderFetch, // moduleLoaderFetch
// &moduleLoaderCreateImportMetaProperties, // moduleLoaderCreateImportMetaProperties
// &moduleLoaderEvaluate, // moduleLoaderEvaluate
// nullptr, // promiseRejectionTracker
// &reportUncaughtExceptionAtEventLoop,
// ¤tScriptExecutionOwner,
// &scriptExecutionStatus,
// nullptr, // defaultLanguage
// nullptr, // compileStreaming
// nullptr, // instantiateStreaming
// };
// void DefaultGlobal::reportUncaughtExceptionAtEventLoop(JSGlobalObject* globalObject, Exception*
// exception) {} JSC::Identifier DefaultGlobal::moduleLoaderResolve(JSGlobalObject* globalObject,
// JSModuleLoader* loader, JSValue key, JSValue referrer, JSValue val) { JSInternalPromise*
// DefaultGlobal::moduleLoaderImportModule(JSGlobalObject* globalObject, JSModuleLoader*, JSString*
// specifierValue, JSValue, const SourceOrigin& sourceOrigin) { JSInternalPromise*
// DefaultGlobal::moduleLoaderFetch(JSGlobalObject* globalObject, JSModuleLoader*, JSValue key,
// JSValue, JSValue) { JSC::JSObject*
// DefaultGlobal::moduleLoaderCreateImportMetaProperties(JSGlobalObject* globalObject,
// JSModuleLoader*loader, JSValue key, JSModuleRecord* record, JSValue value) { JSValue
// DefaultGlobal::moduleLoaderEvaluate(JSGlobalObject* globalObject, JSModuleLoader* moduleLoader,
// JSValue key, JSValue moduleRecordValue, JSValue scriptFetcher, JSValue sentValue, JSValue
// resumeMode) {
// using namespace JSC;
}; // namespace Bun
|