• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:native +full:- +full:file

5 accepts the name of the module being requested as well as an array of so-called "resolvers" - struc…
35 Additionally, this extension provides a means of easily defining so-called "native" JerryScript mod…
36 resolved using the native JerryScript module resolver `jerryx_module_native_resolver`, which can be…
37 `jerryx_module_resolve()`. Native modules are registered during application startup and by calling …
56 …resolve` function pointer returns `true`, the `jerry_value_t` returned in its out-parameter will be
70 - `name` - the name of the module to load
71 - `resolvers_p` - the list of resolvers to call in sequence
72 - `resolver_count` - the number of resolvers in `resolvers_p`
73 - return value - `jerry_value_t` representing the module that was loaded, or the error that occurre…
91 - `name` - the name of the module to remove from cache or a JavaScript `undefined` to clear the ent…
92 - `resolvers_p` - the list of resolvers to call in sequence
93 - `resolver_count` - the number of resolvers in `resolvers_p`
100 The resolver for native JerryScript modules. A pointer to this structure can be passed in the secon…
101 `jerryx_module_resolve` to search for the module among the native JerryScript modules built into th…
153 - `get_canonical_name_p` - function pointer to be called when the canonical name corresponding to t…
155 - `resolve_p` - function pointer to be called when a module with the given canonical name needs to …
172 FILE *js_file = fopen (name_string, "r");
176 /* We have successfully opened the file. Now, we establish its size. */
180 /* We allocate enough memory to store the contents of the file. */
184 …/* We read the file into memory and call jerry_eval (), assigning the result to the out-parameter.…
188 /* We release the memory holding the contents of the file. */
193 /* We close the file. */
206 …* Since a file on the file system can be referred to by multiple relative paths, but only by one a…
209 …se it is the canonical name for this module. Thus, we avoid loading the same JavaScript file twice.
227 …* Consult the resolver for native JerryScript modules first, in case the requested module is a nat…
233 …* If the requested module is not a native JerryScript module, assume it is a JavaScript file on di…
234 * above-defined JavaScript file loader to load it.
247 Helper macro to define a native JerryScript module. Currently declares a global static structure of…
253 **Note**: The helper macro must appear at the bottom of a source file, and no semicolon must follow…
260 - `module_name` - the name of the module without quotes. This value is used as the prefix for the r…
261 first forward-declaring them.
262 - `on_resolve_cb` - the function of type `jerryx_native_module_on_resolve_t` that will be called wh…
269 #include "jerryscript-ext/module.h"
285 #include "jerryscript-ext/module.h"
288 * Forward-declare the module registration and unregistration function.