Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4424700
loader.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
loader.h
View Options
#ifndef ESM_LOADER_H
#define ESM_LOADER_H
#include
"types.h"
#include
<stddef.h>
#include
<stdbool.h>
typedef
enum
{
MODULE_EVAL_FORMAT_UNKNOWN
=
0
,
MODULE_EVAL_FORMAT_ESM
,
MODULE_EVAL_FORMAT_CJS
,
}
ant_module_format_t
;
typedef
struct
ant_module_t
{
ant_value_t
module_ns
;
ant_value_t
module_ctx
;
ant_value_t
prev_import_meta_prop
;
ant_module_format_t
format
;
struct
ant_module_t
*
prev
;
}
ant_module_t
;
void
js_esm_cleanup_module_cache
(
void
);
ant_value_t
js_esm_make_file_url
(
ant_t
*
js
,
const
char
*
path
);
ant_value_t
js_esm_import_sync
(
ant_t
*
js
,
ant_value_t
specifier
);
ant_value_t
js_esm_import_sync_cstr
(
ant_t
*
js
,
const
char
*
specifier
,
size_t
spec_len
);
ant_value_t
js_esm_import_sync_from
(
ant_t
*
js
,
ant_value_t
specifier
,
const
char
*
base_path
);
ant_value_t
js_esm_resolve_specifier
(
ant_t
*
js
,
ant_value_t
specifier
,
const
char
*
base_path
);
ant_value_t
js_esm_import_sync_from_require
(
ant_t
*
js
,
ant_value_t
specifier
,
const
char
*
base_path
);
ant_value_t
js_esm_resolve_specifier_require
(
ant_t
*
js
,
ant_value_t
specifier
,
const
char
*
base_path
);
ant_value_t
js_esm_import_sync_cstr_from
(
ant_t
*
js
,
const
char
*
specifier
,
size_t
spec_len
,
const
char
*
base_path
);
ant_value_t
js_esm_import_dynamic
(
ant_t
*
js
,
ant_value_t
specifier
,
const
char
*
base_path
,
ant_value_t
*
out_tla_promise
);
ant_value_t
js_esm_import_sync_cstr_from_require
(
ant_t
*
js
,
const
char
*
specifier
,
size_t
spec_len
,
const
char
*
base_path
);
ant_value_t
js_esm_eval_module_source
(
ant_t
*
js
,
const
char
*
resolved_path
,
const
char
*
js_code
,
size_t
js_len
,
ant_value_t
ns
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, May 2, 2:09 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
541673
Default Alt Text
loader.h (1 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment