MCPcopy Create free account
hub / github.com/Tracktion/choc / loadStaticModule

Method loadStaticModule

choc/javascript/choc_javascript_V8.h:535–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533 v8::Local<v8::FixedArray>, v8::Local<v8::Module>)
534 {
535 return getCurrent().loadStaticModule (c, specifier);
536 });
537
538 if (ok.IsNothing() || ! ok.ToChecked())
539 return {};
540
541 return mod;
542 }
543
544 v8::MaybeLocal<v8::Module> loadStaticModule (v8::Local<v8::Context> c,
545 v8::Local<v8::String> specifier)
546 {
547 if (currentModuleResolver != nullptr)
548 {
549 auto path = v8StringToStd (specifier);
550 auto maybeCode = (*currentModuleResolver) (path);
551

Callers 1

loadModuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected