cloudflare / cloudflare/workerd

Cannot import v8, cannot serialize

Open
#1,278 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

Durable Objects limits the size of key-value storage, then I need to be able to check the size of some object before try to store it.

So, I need to serialize. But I cannot import serialize from v8:

```
const { serialize } = require("v8")
```

The workerd runtime do not expose it

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.