Skip to content

Commit

Permalink
Support for FileSystemDirectoryHandle when cloning
Browse files Browse the repository at this point in the history
see #1236
  • Loading branch information
bjoeni authored and dfahlander committed May 30, 2022
1 parent d015a76 commit e5da288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function flatten<T> (a: (T | T[])[]) : T[] {

//https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
const intrinsicTypeNames =
"Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey"
"Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey"
.split(',').concat(
flatten([8,16,32,64].map(num=>["Int","Uint","Float"].map(t=>t+num+"Array")))
).filter(t=>_global[t]);
Expand Down

0 comments on commit e5da288

Please sign in to comment.