aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/CommonJSModuleRecord.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/bindings/CommonJSModuleRecord.h
parent4c6245b2e5788ac46e31bf67beefab8cdadebedb (diff)
downloadbun-jarred/redo-evaluation-order.tar.gz
bun-jarred/redo-evaluation-order.tar.zst
bun-jarred/redo-evaluation-order.zip
Align CommonJS evaluation order closer to Node.jsjarred/redo-evaluation-order
Diffstat (limited to 'src/bun.js/bindings/CommonJSModuleRecord.h')
-rw-r--r--src/bun.js/bindings/CommonJSModuleRecord.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bun.js/bindings/CommonJSModuleRecord.h b/src/bun.js/bindings/CommonJSModuleRecord.h
index 86daf875d..ba03d8a71 100644
--- a/src/bun.js/bindings/CommonJSModuleRecord.h
+++ b/src/bun.js/bindings/CommonJSModuleRecord.h
@@ -6,6 +6,8 @@ class GlobalObject;
}
namespace JSC {
class SourceCode;
+class EvalExecutable;
+class SyntheticModuleRecord;
}
namespace Bun {
@@ -17,4 +19,9 @@ JSC::SourceCode createCommonJSModule(
Zig::GlobalObject* globalObject,
ResolvedSource source);
+JSC::JSValue evaluateCommonJSModule(
+ Zig::GlobalObject* globalObject,
+ JSC::SyntheticModuleRecord* syntheticModuleRecord,
+ EvalExecutable* executable);
+
} // namespace Bun