electron/node

fs.realpath.native and fs.realpathSync.native unavailable in electron 3 beta2

jdalton opened this issue · 8 comments

The fs.realpath.native and fs.realpathSync.native have existed since Node 9.2.0+ but I noticed they are unavailable in Electron.

Will take a look at this soon! @jdalton we're running Node v10.2.0 in 3.0.0-beta.2, which has those methods, so what happens when you attempt to use them?

@jdalton It's right here: https://github.com/electron/node/blob/electron-node-v10.2.0/lib/fs.js#L1929-L1937

Could you elaborate what you mean when you say "unavailable in Electron"? Did you try calling them and get an error?

I see they are in the source but if you run code and try to access them they aren't there (at least not for me, I haven't tried beta 3)

ok cool, i'll run some repros this afternoon and try to dig into what this problem may be :)

Found it!

It's related to the fs method wrappers that Electron does.

Related electron/electron#13826

i'll look into refactoring this code to address both these issues!

Thank you @codebytere!