Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

[docs] Nice to have detailed document for new target dynamic #1852

Open
cuiyanx opened this issue Mar 6, 2018 · 1 comment
Open

[docs] Nice to have detailed document for new target dynamic #1852

cuiyanx opened this issue Mar 6, 2018 · 1 comment
Assignees
Labels

Comments

@cuiyanx
Copy link
Contributor

cuiyanx commented Mar 6, 2018

Description

There is not detailed document for new target dynamic. To the user, do not know how to use this target. I find we have added function runJS() through the source code, and we have some others. So I suggest adding an introduction to the document.

Test Code

/src/zjs_modules.c

zjs_obj_add_function(global_obj, "eval", native_eval_handler);
zjs_obj_add_function(global_obj, "print", native_print_handler);
zjs_obj_add_function(global_obj, "stopJS", stop_js_handler);
zjs_obj_add_function(global_obj, "runJS", zjs_run_js);
zjs_obj_add_function(process, "exit", process_exit);
@cuiyanx cuiyanx changed the title [doc] Can we add document for module APIs? [docs] Nice to have detailed document for new target dynamic Mar 9, 2018
@brianjjones
Copy link
Contributor

Added with #1876

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants