aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/modules/TTYModule.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-02 02:07:17 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-02 02:07:17 -0700
commitdf2738ac824e46499b2f046a4eba165c19466e0e (patch)
tree94fc225123b83d2b82f9a7a7084131c07691b182 /src/bun.js/modules/TTYModule.h
parent4c6245b2e5788ac46e31bf67beefab8cdadebedb (diff)
downloadbun-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/TTYModule.h')
-rw-r--r--src/bun.js/modules/TTYModule.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bun.js/modules/TTYModule.h b/src/bun.js/modules/TTYModule.h
index 423268b32..c5f2afd7b 100644
--- a/src/bun.js/modules/TTYModule.h
+++ b/src/bun.js/modules/TTYModule.h
@@ -31,10 +31,10 @@ JSC_DEFINE_HOST_FUNCTION(jsFunctionNotImplementedYet,
return JSValue::encode(jsUndefined());
}
-inline void generateTTYSourceCode(JSC::JSGlobalObject *lexicalGlobalObject,
- JSC::Identifier moduleKey,
- Vector<JSC::Identifier, 4> &exportNames,
- JSC::MarkedArgumentBuffer &exportValues) {
+inline JSValue generateTTYSourceCode(JSC::JSGlobalObject *lexicalGlobalObject,
+ JSC::Identifier moduleKey,
+ Vector<JSC::Identifier, 4> &exportNames,
+ JSC::MarkedArgumentBuffer &exportValues) {
JSC::VM &vm = lexicalGlobalObject->vm();
GlobalObject *globalObject =
reinterpret_cast<GlobalObject *>(lexicalGlobalObject);
@@ -73,6 +73,8 @@ inline void generateTTYSourceCode(JSC::JSGlobalObject *lexicalGlobalObject,
exportNames.append(vm.propertyNames->defaultKeyword);
exportValues.append(tty);
+
+ return {};
}
} // namespace Zig