Add Windows support. (#2306)
JerryScript-DCO-1.0-Signed-off-by: PKarics karicska@gmail.com JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
@@ -176,7 +176,7 @@ jerryx_resolve_native_module (const jerry_value_t canonical_name, /**< canonical
|
||||
const jerryx_native_module_t *module_p = NULL;
|
||||
|
||||
jerry_size_t name_size = jerry_get_utf8_string_size (canonical_name);
|
||||
jerry_char_t name_string[name_size];
|
||||
JERRY_VLA (jerry_char_t, name_string, name_size);
|
||||
jerry_string_to_utf8_char_buffer (canonical_name, name_string, name_size);
|
||||
|
||||
/* Look for the module by its name in the list of module definitions. */
|
||||
@@ -214,7 +214,7 @@ jerryx_module_resolve_local (const jerry_value_t name, /**< name of the module t
|
||||
size_t index;
|
||||
size_t canonical_names_used = 0;
|
||||
jerry_value_t instances;
|
||||
jerry_value_t canonical_names[resolver_count];
|
||||
JERRY_VLA (jerry_value_t, canonical_names, resolver_count);
|
||||
jerry_value_t (*get_canonical_name_p) (const jerry_value_t name);
|
||||
bool (*resolve_p) (const jerry_value_t canonical_name,
|
||||
jerry_value_t *result);
|
||||
|
||||
Reference in New Issue
Block a user