-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
Ships in Node 17
https://nodejs.org/api/globals.html#structuredclonevalue-options
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
it is also used by e.g. worker_threads
, which ships from node 10
const envalid = require('envalid');
const config = envalid.cleanEnv({ HELLO: 'foobar' }, { HELLO: envalid.str() });
structuredClone(config);
throws
Uncaught:
DOMException [DataCloneError]: #<Object> could not be cloned.
at structuredClone (node:internal/structured_clone:15:17)
Metadata
Metadata
Assignees
Labels
No labels