mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Update NodeModuleModule.cpp
This commit is contained in:
@@ -135,8 +135,8 @@ void generateNodeModuleModule(JSC::JSGlobalObject *globalObject,
|
||||
ImplementationVisibility::Public, NoIntrinsic,
|
||||
jsFunctionSourceMap, nullptr));
|
||||
|
||||
append(JSC::Identifier::fromString(vm, "_resolveFileName"_s),
|
||||
JSFunction::create(vm, globalObject, 3, String("_resolveFileName"_s),
|
||||
append(JSC::Identifier::fromString(vm, "_resolveFilename"_s),
|
||||
JSFunction::create(vm, globalObject, 3, String("_resolveFilename"_s),
|
||||
jsFunctionResolveFileName,
|
||||
ImplementationVisibility::Public));
|
||||
|
||||
@@ -151,6 +151,9 @@ void generateNodeModuleModule(JSC::JSGlobalObject *globalObject,
|
||||
append(JSC::Identifier::fromString(vm, "globalPaths"_s),
|
||||
JSC::constructEmptyArray(globalObject, nullptr, 0));
|
||||
|
||||
append(JSC::Identifier::fromString(vm, "prototype"_s),
|
||||
JSC::constructEmptyObject(globalObject));
|
||||
|
||||
JSC::JSArray *builtinModules = JSC::JSArray::create(
|
||||
vm,
|
||||
globalObject->arrayStructureForIndexingTypeDuringAllocation(
|
||||
|
||||
Reference in New Issue
Block a user