bare-module 1.11.1 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.c +5 -0
- package/index.js +1 -0
- package/package.json +1 -1
package/binding.c
CHANGED
|
@@ -469,6 +469,11 @@ bare_module_realpath (js_env_t *env, js_callback_info_t *info) {
|
|
|
469
469
|
uv_fs_t req;
|
|
470
470
|
uv_fs_realpath(loop, &req, (char *) path, NULL);
|
|
471
471
|
|
|
472
|
+
if (req.result < 0) {
|
|
473
|
+
js_throw_error(env, uv_err_name(err), uv_strerror(err));
|
|
474
|
+
return NULL;
|
|
475
|
+
}
|
|
476
|
+
|
|
472
477
|
js_value_t *result;
|
|
473
478
|
err = js_create_string_utf8(env, (utf8_t *) req.ptr, -1, &result);
|
|
474
479
|
assert(err == 0);
|
package/index.js
CHANGED