diff options
author | 2023-06-02 02:07:17 -0700 | |
---|---|---|
committer | 2023-06-02 02:07:17 -0700 | |
commit | df2738ac824e46499b2f046a4eba165c19466e0e (patch) | |
tree | 94fc225123b83d2b82f9a7a7084131c07691b182 /src/bun.js/modules/ObjectModule.cpp | |
parent | 4c6245b2e5788ac46e31bf67beefab8cdadebedb (diff) | |
download | bun-df2738ac824e46499b2f046a4eba165c19466e0e.tar.gz bun-df2738ac824e46499b2f046a4eba165c19466e0e.tar.zst bun-df2738ac824e46499b2f046a4eba165c19466e0e.zip |
Align CommonJS evaluation order closer to Node.jsjarred/redo-evaluation-order
Diffstat (limited to 'src/bun.js/modules/ObjectModule.cpp')
-rw-r--r-- | src/bun.js/modules/ObjectModule.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bun.js/modules/ObjectModule.cpp b/src/bun.js/modules/ObjectModule.cpp index 4272bec4e..2b528d7c6 100644 --- a/src/bun.js/modules/ObjectModule.cpp +++ b/src/bun.js/modules/ObjectModule.cpp @@ -9,7 +9,7 @@ generateObjectModuleSourceCode(JSC::JSGlobalObject *globalObject, return [object](JSC::JSGlobalObject *lexicalGlobalObject, JSC::Identifier moduleKey, Vector<JSC::Identifier, 4> &exportNames, - JSC::MarkedArgumentBuffer &exportValues) -> void { + JSC::MarkedArgumentBuffer &exportValues) -> JSValue { JSC::VM &vm = lexicalGlobalObject->vm(); GlobalObject *globalObject = reinterpret_cast<GlobalObject *>(lexicalGlobalObject); @@ -24,6 +24,8 @@ generateObjectModuleSourceCode(JSC::JSGlobalObject *globalObject, exportNames.append(entry); exportValues.append(object->get(globalObject, entry)); } + + return {}; }; } } // namespace Zig
\ No newline at end of file |