Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should have fs.realpath*.native() function #650

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/fs/__tests__/fs-integration.test.js
Expand Up @@ -31,4 +31,10 @@ describe('native fs', () => {
assert.strictEqual(fse.F_OK, fs.F_OK)
}
})

it('should have `fs.realpath*.native()` function', () => {
// Node.js v9.2.0
assert.strictEqual(fse.realpathSync.native, fs.realpathSync.native)
assert.strictEqual(fse.realpath.native, fs.realpath.native)
})
})
3 changes: 2 additions & 1 deletion lib/fs/index.js
@@ -1,7 +1,8 @@
'use strict'
// This is adapted from https://github.com/normalize/mz
// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
const u = require('universalify').fromCallback
const util = require('util')
const u = util.promisify || require('universalify').fromCallback
const fs = require('graceful-fs')

const api = [
Expand Down