streamich/memfs

Bug: `git-opfs` demo doesn't work in Safari

开放

#963 创建于 2023年11月2日

 (2 条评论) (1 个反应) (0 位负责人)TypeScript (147 个派生)github user discovery
help wanted

仓库指标

星标
 (2,062 个星标)
PR 合并指标
 (平均合并 4天 8小时) (30 天内合并 8 个 PR)

描述

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

Image

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

  1. Clone the memfs repository
  2. Install dependencies (yarn)
  3. Run the git-opfs demo (yarn demo:git-opfs)
  4. 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

贡献者指南