From 802f9ccb5864e9e1cfee7c0aa5abffbb69d53fdc Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 13 Jul 2023 01:41:56 -0700 Subject: wip! --- src/bun.js/bindings/ModuleLoader.cpp | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'src/bun.js/bindings/ModuleLoader.cpp') diff --git a/src/bun.js/bindings/ModuleLoader.cpp b/src/bun.js/bindings/ModuleLoader.cpp index 0ccbb7dbb..46365a5fe 100644 --- a/src/bun.js/bindings/ModuleLoader.cpp +++ b/src/bun.js/bindings/ModuleLoader.cpp @@ -8,7 +8,6 @@ #include "JavaScriptCore/JSNativeStdFunction.h" #include "JavaScriptCore/JSCJSValueInlines.h" #include "JavaScriptCore/JSInternalPromise.h" -#include "JavaScriptCore/JSInternalFieldObjectImpl.h" #include "ZigSourceProvider.h" @@ -36,11 +35,12 @@ #include "../modules/TTYModule.h" #include "node_util_types.h" #include "CommonJSModuleRecord.h" -#include -#include -#include -#include -#include +#include "JavaScriptCore/JSModuleLoader.h" +#include "JavaScriptCore/Completion.h" +#include "JavaScriptCore/JSModuleNamespaceObject.h" +#include "JavaScriptCore/JSMap.h" +#include "JavaScriptCore/JSMapInlines.h" +#include "JavaScriptCore/JSInternalFieldObjectImplInlines.h" namespace Bun { using namespace Zig; @@ -690,18 +690,3 @@ JSValue fetchSourceCodeAsync( return fetchSourceCode(globalObject, res, specifier, referrer); } } -namespace JSC { - -template -template -void JSInternalFieldObjectImpl::visitChildrenImpl(JSCell* cell, Visitor& visitor) -{ - auto* thisObject = jsCast(cell); - ASSERT_GC_OBJECT_INHERITS(thisObject, info()); - Base::visitChildren(thisObject, visitor); - visitor.appendValues(thisObject->m_internalFields, numberOfInternalFields); -} - -DEFINE_VISIT_CHILDREN_WITH_MODIFIER(template, JSInternalFieldObjectImpl); - -} // namespace JSC -- cgit v1.2.3