Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2025-02-18 19:13:36 +08:00
commit d4f1c1faed
3 changed files with 27 additions and 8 deletions

View file

@ -1700,6 +1700,8 @@ JSStructuredCloneWriter::write(HandleValue v)
return false;
if (cls == ESClass::Map) {
if (!counts.back())
return false;
counts.back()--;
RootedValue val(context(), entries.back());
entries.popBack();