aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/path.exports.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /src/javascript/jsc/path.exports.js
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-jarred/rename.tar.gz
bun-jarred/rename.tar.zst
bun-jarred/rename.zip
change the directory structurejarred/rename
Diffstat (limited to 'src/javascript/jsc/path.exports.js')
-rw-r--r--src/javascript/jsc/path.exports.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/javascript/jsc/path.exports.js b/src/javascript/jsc/path.exports.js
deleted file mode 100644
index 98f685fc1..000000000
--- a/src/javascript/jsc/path.exports.js
+++ /dev/null
@@ -1,40 +0,0 @@
-function bound(obj) {
- return {
- basename: obj.basename.bind(obj),
- dirname: obj.dirname.bind(obj),
- extname: obj.extname.bind(obj),
- format: obj.format.bind(obj),
- isAbsolute: obj.isAbsolute.bind(obj),
- join: obj.join.bind(obj),
- normalize: obj.normalize.bind(obj),
- parse: obj.parse.bind(obj),
- relative: obj.relative.bind(obj),
- resolve: obj.resolve.bind(obj),
- toNamespacedPath: obj.toNamespacedPath.bind(obj),
- sep: obj.sep,
- delimiter: obj.delimiter,
- };
-}
-var path = bound(Bun._Path());
-path.win32 = win32;
-path.posix = posix;
-export var posix = bound(Bun._Path(false));
-export var win32 = bound(Bun._Path(true));
-
-export var {
- basename,
- dirname,
- extname,
- format,
- isAbsolute,
- join,
- normalize,
- parse,
- relative,
- resolve,
- toNamespacedPath,
- sep,
- delimiter,
-} = path;
-
-export default path;