mirror of
https://github.com/oven-sh/bun
synced 2026-02-19 07:12:24 +00:00
34 lines
894 B
C++
34 lines
894 B
C++
// clang-format off
|
|
#pragma once
|
|
|
|
#include "root.h"
|
|
|
|
#include "JSCommonJSModule.h"
|
|
#include "ImportMetaObject.h"
|
|
#include "JavaScriptCore/ArgList.h"
|
|
#include "JavaScriptCore/JSCJSValue.h"
|
|
#include "JavaScriptCore/JSGlobalObjectInlines.h"
|
|
#include "_NativeModule.h"
|
|
#include "isBuiltinModule.h"
|
|
#include <JavaScriptCore/JSBoundFunction.h>
|
|
#include <JavaScriptCore/ObjectConstructor.h>
|
|
|
|
using namespace Zig;
|
|
using namespace JSC;
|
|
|
|
|
|
namespace Bun {
|
|
JSC_DECLARE_HOST_FUNCTION(jsFunctionIsModuleResolveFilenameSlowPathEnabled);
|
|
void addNodeModuleConstructorProperties(JSC::VM &vm, Zig::GlobalObject *globalObject);
|
|
}
|
|
|
|
namespace Zig {
|
|
|
|
void generateNativeModule_NodeModule(
|
|
JSC::JSGlobalObject *lexicalGlobalObject, JSC::Identifier moduleKey,
|
|
Vector<JSC::Identifier, 4> &exportNames,
|
|
JSC::MarkedArgumentBuffer &exportValues);
|
|
|
|
|
|
} // namespace Zig
|