You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Disables serialization of `BigInt64Array` and `BigUint64Array`
56
+
-`RegExp`
57
+
- Disables serialization (and deserialization) of `RegExp`
56
58
57
59
## Supported Types
58
60
@@ -75,7 +77,7 @@ By default, all feature flags are enabled. The following are the feature flags a
75
77
|`Array`| ✅ | ✅ | ✅ |
76
78
| sparse (holey) `Arrays`| ✅ | ✅ | ✅ |
77
79
|`Object`| ✅ | ✅ | ✅ |
78
-
|`RegExp`|✅| ✅| ✅ |
80
+
|`RegExp`|❓[^6]| ❓[^6]| ❓[^6]|
79
81
|`Date`| ✅ | ✅ | ✅ |
80
82
|`Map`| ✅ | ✅ | ✅ |
81
83
|`Set`| ✅ | ✅ | ✅ |
@@ -133,3 +135,4 @@ By default, all feature flags are enabled. The following are the feature flags a
133
135
[^3]: `Feature.AggregateError` must be enabled, otherwise `AggregateError` is serialized into an `Error` instance.
134
136
[^4]: `FormData` is partially supported if it doesn't contain any `Blob` or `File` instances.
135
137
[^5]: Due to the nature of `Blob` and `File` being an async type (in that it returns a `Promise`-based serializable data) while having a sync constructor, it cannot be represented in a way that the type is consistent to its original declaration.
138
+
[^6]: `Feature.RegExp` must be enabled, otherwise throws an `SerovalUnsupportedTypeError` and `SerovalUnsupportedNodeError`.
exports[`DOMException > toCrossJSONStream > supports DOMException 2`] =`"{"t":23,"i":1,"a":[{"t":26,"i":4,"s":2},{"t":25,"i":3,"s":{"name":{"t":1,"s":"Example"},"message":{"t":1,"s":"This is an example message."}},"c":"seroval-plugins/web/DOMException"}]}"`;
68
68
69
-
exports[`DOMException > toJSON > supports DOMException 1`] =`"{"t":{"t":25,"i":0,"s":{"name":{"t":1,"s":"Example"},"message":{"t":1,"s":"This is an example message."}},"c":"seroval-plugins/web/DOMException"},"f":31,"m":[]}"`;
69
+
exports[`DOMException > toJSON > supports DOMException 1`] =`"{"t":{"t":25,"i":0,"s":{"name":{"t":1,"s":"Example"},"message":{"t":1,"s":"This is an example message."}},"c":"seroval-plugins/web/DOMException"},"f":63,"m":[]}"`;
70
70
71
-
exports[`DOMException > toJSONAsync > supports DOMException 1`] =`"{"t":{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"name":{"t":1,"s":"Example"},"message":{"t":1,"s":"This is an example message."}},"c":"seroval-plugins/web/DOMException"}},"f":31,"m":[]}"`;
71
+
exports[`DOMException > toJSONAsync > supports DOMException 1`] =`"{"t":{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"name":{"t":1,"s":"Example"},"message":{"t":1,"s":"This is an example message."}},"c":"seroval-plugins/web/DOMException"}},"f":63,"m":[]}"`;
0 commit comments