From fb100b165adbb00e6331ae0a5594f893da844d7c Mon Sep 17 00:00:00 2001 From: Ben Heidemann Date: Sun, 18 Apr 2021 15:40:34 +0100 Subject: [PATCH] refactor: use Object.assign instead of Object.create for cloning nodePath because Object.keys omits many of the methods on the filerPath module when using Object.create --- src/path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.js b/src/path.js index b162834..5902e94 100644 --- a/src/path.js +++ b/src/path.js @@ -10,7 +10,7 @@ process.cwd = () => '/'; * a few things we need for the browser environment. */ const nodePath = require('path'); -const filerPath = Object.create(nodePath); +const filerPath = Object.assign({}, nodePath); /** * Patch path.basename() to return / vs. ''