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/bindings/CommonJSModuleRecord.h | |
parent | 4c6245b2e5788ac46e31bf67beefab8cdadebedb (diff) | |
download | bun-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.h | 7 |
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 |