(value, options)
| 111 | ); |
| 112 | |
| 113 | function structuredClone(value, options) { |
| 114 | if (arguments.length === 0) { |
| 115 | throw new ERR_MISSING_ARGS('The value argument must be specified'); |
| 116 | } |
| 117 | |
| 118 | const idlOptions = webidl.converters.StructuredSerializeOptions( |
| 119 | options, |
| 120 | { |
| 121 | __proto__: null, |
| 122 | prefix: "Failed to execute 'structuredClone'", |
| 123 | context: 'Options', |
| 124 | }, |
| 125 | ); |
| 126 | |
| 127 | const serializedData = nativeStructuredClone(value, idlOptions); |
| 128 | return serializedData; |
| 129 | } |
| 130 | |
| 131 | module.exports = { |
| 132 | markTransferMode, |
no outgoing calls
no test coverage detected