diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-01-15 09:19:58 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-15 12:19:58 -0500 |
commit | c870cf40823a4900278f8ddf03489338c169878b (patch) | |
tree | 80c171f7bb36c988f459a4d0ee248a40d3feb34b /libdeno/deno.h | |
parent | ac6ac5037ff53f4e7b9693aeed24f1e3ef1339ad (diff) |
Add --prefetch flag for deps prefetch without running (#1475)
Diffstat (limited to 'libdeno/deno.h')
-rw-r--r-- | libdeno/deno.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdeno/deno.h b/libdeno/deno.h index a061f7452..d80043780 100644 --- a/libdeno/deno.h +++ b/libdeno/deno.h @@ -75,8 +75,11 @@ int deno_execute(Deno* d, void* user_data, const char* js_filename, // when instantiating the Deno object. // Return value: 0 = fail, 1 = success // Get error text with deno_last_exception(). +// If resolve_only is 0, compile and evaluate the module. +// If resolve_only is 1, compile and collect dependencies of the module +// without running the code. int deno_execute_mod(Deno* d, void* user_data, const char* js_filename, - const char* js_source); + const char* js_source, int resolve_only); // deno_respond sends up to one message back for every deno_recv_cb made. // |