mirror of
https://github.com/oven-sh/bun
synced 2026-02-19 23:31:45 +00:00
Fix createRequire() in node:module
Fixes https://github.com/oven-sh/bun/issues/831 Fixes https://github.com/oven-sh/bun/issues/453
This commit is contained in:
12
src/bun.js/modules/NodeModuleModule.h
Normal file
12
src/bun.js/modules/NodeModuleModule.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "../bindings/ZigGlobalObject.h"
|
||||
#include "JavaScriptCore/JSGlobalObject.h"
|
||||
|
||||
namespace Zig {
|
||||
|
||||
// node:module
|
||||
void generateNodeModuleModule(JSC::JSGlobalObject *globalObject,
|
||||
JSC::Identifier moduleKey,
|
||||
Vector<JSC::Identifier, 4> &exportNames,
|
||||
JSC::MarkedArgumentBuffer &exportValues);
|
||||
|
||||
} // namespace Zig
|
||||
Reference in New Issue
Block a user