You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var{ Volume }=require('memfs')var{ Union }=require('unionfs')varmkdirp=require('mkdirp')varfs=require('fs')varmfs=Volume.fromJSON({'/some/path': 'content'})// throw "file already exists" Error, as expectedmkdirp.sync('/some/path',{fs: mfs})varufs1=newUnion().use(mfs).use(fs)// throw "file already exists" Error, as expectedmkdirp.sync('/some/path',{fs: ufs1})varufs2=newUnion().use(fs).use(mfs)// throw "Maximum call stack size exceeded" Error, not expectedmkdirp.sync('/some/path',{fs: ufs2})/** * Error:{ RangeError: Maximum call stack size exceeded at Object.uvException (internal/errors.js:250:21) at handleErrorFromBinding (fs.js:112:24) at Object.mkdirSync (fs.js:752:3) at Union.syncMethod (/Users/c4605/workSpace/pryo/fs-tree/node_modules/unionfs/lib/union.js:308:35) at Union.this_1.(anonymous function) [as mkdirSync] (/Users/c4605/workSpace/pryo/fs-tree/node_modules/unionfs/lib/union.js:60:34) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:71:13) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:77:24) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:78:17) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:78:17) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:78:17) prev: { RangeError: Maximum call stack size exceeded at Arguments.slice (<anonymous>) at extend (/Users/c4605/workSpace/pryo/fs-tree/node_modules/fast-extend/index.js:11:47) at getMkdirOptions (/Users/c4605/workSpace/pryo/fs-tree/node_modules/memfs/lib/volume.js:248:16) at Volume.mkdirSync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/memfs/lib/volume.js:1525:20) at Union.syncMethod (/Users/c4605/workSpace/pryo/fs-tree/node_modules/unionfs/lib/union.js:308:35) at Union.this_1.(anonymous function) [as mkdirSync] (/Users/c4605/workSpace/pryo/fs-tree/node_modules/unionfs/lib/union.js:60:34) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:71:13) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:77:24) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:78:17) at sync (/Users/c4605/workSpace/pryo/fs-tree/node_modules/mkdirp/index.js:78:17) prev: null } } */
The text was updated successfully, but these errors were encountered:
node version:
v10.15.3
Reproduce:
The text was updated successfully, but these errors were encountered: