Lines Matching refs:name

26 static const jerry_char_t *module_name_not_string = (jerry_char_t *) "Module name is not a string";
32 * string containing the name of the module that was requested when the error occurred.
39 const jerry_value_t module_name) /**< the module name */
114 * Attempt to retrieve a module by name from a cache, and return false if not found.
117 jerryx_module_check_cache (jerry_value_t cache, /**< cache from which to attempt to retrieve the module by name */
118 jerry_value_t module_name, /**< JerryScript string value holding the module name */
177 * section and loads one that matches the requested name, caching the result for subsequent requests using the context
181 jerryx_resolve_native_module (const jerry_value_t canonical_name, /**< canonical name of the module */
202 /* Look for the module by its name in the list of module definitions. */
209 /* If we find the module by its name we load it and cache it if it has an on_resolve () and complain otherwise. */
234 jerryx_module_resolve_local (const jerry_value_t name, /**< name of the module to load */
253 jerry_value_t (*get_canonical_name_p) (const jerry_value_t name);
257 if (!jerry_value_is_string (name))
261 *result = jerryx_module_create_error (JERRY_ERROR_COMMON, module_name_not_string, name);
269 * Establish the canonical name for the requested module. Each resolver presents its own canonical name. If one of
275 canonical_names[index] = ((get_canonical_name_p == NULL) ? jerry_acquire_value (name)
276 : get_canonical_name_p (name));
312 *result = jerryx_module_create_error (JERRY_ERROR_COMMON, module_not_found, name);
329 * @p name - name of the module to resolve
334 * - the result of having loaded the module named @p name, or
339 jerryx_module_resolve (const jerry_value_t name, /**< name of the module to load */
345 jerryx_module_resolve_local (name, resolvers_p, resolver_count, &ret);
350 jerryx_module_clear_cache (const jerry_value_t name, /**< name of the module to remove, or undefined */
356 if (jerry_value_is_undefined (name))
365 jerryx_module_resolve_local (name, resolvers_p, resolver_count, NULL);