From df2738ac824e46499b2f046a4eba165c19466e0e Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 2 Jun 2023 02:07:17 -0700 Subject: Align CommonJS evaluation order closer to Node.js --- src/bun.js/bindings/CommonJSModuleRecord.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/bun.js/bindings/CommonJSModuleRecord.h') 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 -- cgit v1.2.3