1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibWeb: Add {de}serialization steps for RegExpObjects

We skip serializing any of the internal state of the Regex<ECMA262>
object, because that state is all computable from the input pattern
and flags. If it turns out that this is really, really slow, we can add
some optimizations to serialize more of the regex parse result.
This commit is contained in:
Andrew Kaster 2023-09-11 16:32:13 -06:00 committed by Andreas Kling
parent 3a74bd2509
commit 267074cd81
3 changed files with 25 additions and 1 deletions

View file

@ -5,4 +5,5 @@ false
This is a String object
9007199254740991
1692748800000
/abc/gimsuy
ERROR: DataCloneError: Cannot serialize Symbol