mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02: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:
committed by
Andreas Kling
parent
3a74bd2509
commit
267074cd81
Notes:
sideshowbarker
2024-07-16 22:58:46 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/267074cd81 Pull-request: https://github.com/SerenityOS/serenity/pull/21039
@@ -8,6 +8,7 @@
|
||||
println(structuredClone(new String("This is a String object")));
|
||||
println(structuredClone(BigInt("0x1fffffffffffff")));
|
||||
println(structuredClone(Date.UTC(2023, 7, 23)));
|
||||
println(structuredClone(/abc/gimsuy));
|
||||
|
||||
try {
|
||||
structuredClone(Symbol("foo"));
|
||||
|
||||
Reference in New Issue
Block a user