[oden-js-sys] Add functions to get more information of modules
Adopt https://github.com/bellard/quickjs/pull/35
This commit is contained in:
parent
156b6d6691
commit
0c8367d29f
2 changed files with 37 additions and 1 deletions
|
|
@ -1038,6 +1038,11 @@ int JS_SetModuleExport(JSContext *ctx, JSModuleDef *m, const char *export_name,
|
|||
JSValue val);
|
||||
int JS_SetModuleExportList(JSContext *ctx, JSModuleDef *m,
|
||||
const JSCFunctionListEntry *tab, int len);
|
||||
/* can only be called after the module is initialized */
|
||||
JSValueConst JS_GetModuleExport(JSContext *ctx, const JSModuleDef *m, const char *export_name);
|
||||
int JS_CountModuleExport(JSContext *ctx, const JSModuleDef *m);
|
||||
JSAtom JS_GetModuleExportName(JSContext *ctx, const JSModuleDef *m, int idx);
|
||||
JSValueConst JS_GetModuleExportValue(JSContext *ctx, const JSModuleDef *m, int idx);
|
||||
|
||||
#undef js_unlikely
|
||||
#undef js_force_inline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue