-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproduced
Description
% yarn -v
2.2.2
% yarn node
Welcome to Node.js v14.7.0.
Type ".help" for more information.
> const fs = require( 'fs' ).promises;
undefined
> fs.open( './index.js' ).then( fd => fd.stat() ).then( stat => console.log( stat ) );
Promise { <pending> }
> (node:76736) UnhandledPromiseRejectionWarning: TypeError: p.match is not a function
at Function.resolveVirtual (/x/.pnp.js:5170:21)
at VirtualFS.mapToBase (/x/.pnp.js:5207:22)
at VirtualFS.statPromise (/x/.pnp.js:4948:41)
at PosixFS.statPromise (/x/.pnp.js:4948:24)
at FileHandle.stat (/x/.pnp.js:8077:27)
at repl:1:40
% node
Welcome to Node.js v14.7.0.
Type ".help" for more information.
> const fs = require( 'fs' ).promises;
undefined
> fs.open( './index.js' ).then( fd => fd.stat() ).then( stat => console.log( stat ) );
Promise { <pending> }
> Stats {
dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 80,
rdev: 0,
blksize: 4096,
ino: 83137944,
size: 0,
blocks: 0,
atimeMs: 1601261525682.7114,
mtimeMs: 1601261525682.7114,
ctimeMs: 1601261525682.7114,
birthtimeMs: 1601261525682.7114,
atime: 2020-09-28T02:52:05.683Z,
mtime: 2020-09-28T02:52:05.683Z,
ctime: 2020-09-28T02:52:05.683Z,
birthtime: 2020-09-28T02:52:05.683Z
}
goszczynskipratson
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproduced