From c6152f998e047832970d73b7d21ffda5254027dc Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sat, 5 Oct 2024 22:47:00 +0200 Subject: [PATCH] Simplify a bit --- src/bindings.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/bindings.cpp b/src/bindings.cpp index d9ad8ec..8afc4a7 100644 --- a/src/bindings.cpp +++ b/src/bindings.cpp @@ -104,28 +104,19 @@ static v8::MaybeLocal dynamic_module_loader(v8::Local return promise; } -#if V8_VERSION_TOTAL >= 908 - static v8::MaybeLocal ResolveDynamicModuleCallback( v8::Local context, +#if V8_VERSION_TOTAL >= 908 v8::Local host_defined_options, v8::Local resource_name, - v8::Local specifier, - v8::Local import_assertions) { - return dynamic_module_loader(context, specifier); -} - #else - -static v8::MaybeLocal ResolveDynamicModuleCallback( - v8::Local context, v8::Local referrer, +#endif v8::Local specifier, v8::Local import_assertions) { return dynamic_module_loader(context, specifier); } -#endif /* Helper fun that compiles JavaScript source code */ static v8::Local read_module(std::string filename, v8::Local context){