mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
JS changes
This commit is contained in:
parent
7ec7c065cf
commit
18167492e7
7
index.js
7
index.js
@ -140,7 +140,6 @@ class Fuse extends Nanoresource {
|
||||
this.ops = ops
|
||||
this._thread = null
|
||||
this._handlers = this._makeHandlerArray()
|
||||
this._closed = false
|
||||
|
||||
const implemented = [binding.op_init, binding.op_error, binding.op_getattr]
|
||||
if (ops) {
|
||||
@ -229,8 +228,6 @@ class Fuse extends Nanoresource {
|
||||
// Lifecycle methods
|
||||
|
||||
_open (cb) {
|
||||
if (this._closed) return process.nextTick(cb, new Error('Cannot reopen a closed FUSE instance.'))
|
||||
|
||||
this._thread = Buffer.alloc(binding.sizeof_fuse_thread_t)
|
||||
this._openCallback = cb
|
||||
|
||||
@ -525,11 +522,11 @@ class Fuse extends Nanoresource {
|
||||
// Public API
|
||||
|
||||
mount (cb) {
|
||||
return this._open(cb)
|
||||
return this.open(cb)
|
||||
}
|
||||
|
||||
unmount (cb) {
|
||||
return this._close(cb)
|
||||
return this.close(cb)
|
||||
}
|
||||
|
||||
errno (code) {
|
||||
|
Loading…
Reference in New Issue
Block a user