I tried opening the git-opfs demo in Safari and got a runtime error: DataCloneError: The object can not be cloned.

According to MDN, Safari supports OPFS so I'd expect this example to work.
Note: The demo works as expected in Chrome.
Steps to reproduce
- Clone the memfs repository
- Install dependencies (
yarn)
- Run the
git-opfs demo (yarn demo:git-opfs)
- Open https://localhost:9876 in Safari (I needed to bypass the
https security risk warning)
Versions
- memfs: 4.6.0
- Safari: Version 17.1 (19616.2.9.11.7)
- macOS: Sonoma 14.1
I tried opening the git-opfs demo in Safari and got a runtime error:
DataCloneError: The object can not be cloned.According to MDN, Safari supports OPFS so I'd expect this example to work.
Note: The demo works as expected in Chrome.
Steps to reproduce
yarn)git-opfsdemo (yarn demo:git-opfs)httpssecurity risk warning)Versions