mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
19 lines
525 B
C++
19 lines
525 B
C++
|
|
namespace Zig {
|
|
void generateNativeModule_BunTest(
|
|
JSC::JSGlobalObject* lexicalGlobalObject,
|
|
JSC::Identifier moduleKey,
|
|
Vector<JSC::Identifier, 4>& exportNames,
|
|
JSC::MarkedArgumentBuffer& exportValues)
|
|
{
|
|
auto& vm = JSC::getVM(lexicalGlobalObject);
|
|
auto globalObject = jsCast<Zig::GlobalObject*>(lexicalGlobalObject);
|
|
|
|
JSObject* object = globalObject->lazyPreloadTestModuleObject();
|
|
|
|
exportNames.append(vm.propertyNames->defaultKeyword);
|
|
exportValues.append(object);
|
|
}
|
|
|
|
} // namespace Zig
|