bare-module 1.11.1 → 1.11.2

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.
Files changed (2) hide show
  1. package/binding.c +5 -0
  2. 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [