Module quickjs_runtime::quickjs_utils::modules [−][src]
utils for working with ES6 Modules
Functions
| add_module_export⚠ | set an export in a JSModuleDef, this should be called BEFORE this init_func(as passed to new_module()) is called |
| compile_module⚠ | compile a module, used for module loading |
| detect_module | detect if a script is module (contains import or export statements) |
| get_module_def | |
| get_module_name⚠ | get the name of an JSModuleDef struct |
| new_module⚠ | create new Module (JSModuleDef struct) which can be populated with exports after (and from) the init_func |
| set_module_export⚠ | set an export in a JSModuleDef, this should be called AFTER the init_func(as passed to new_module()) is called please note that you always need to use this in combination with add_module_export() |
| set_module_loader |